From d4bbe0d8dbc16dd58e59d852fd63cad4e0552f7f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 1 Apr 2018 09:31:00 +1000 Subject: [PATCH] Fix formatting in ComponentsTest --- .../java/net/md_5/bungee/api/chat/ComponentsTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chat/src/test/java/net/md_5/bungee/api/chat/ComponentsTest.java b/chat/src/test/java/net/md_5/bungee/api/chat/ComponentsTest.java index 5bf1bf8e6..6eda2a72a 100644 --- a/chat/src/test/java/net/md_5/bungee/api/chat/ComponentsTest.java +++ b/chat/src/test/java/net/md_5/bungee/api/chat/ComponentsTest.java @@ -23,8 +23,8 @@ public class ComponentsTest // appends &f regardless if the color is non null or not and would otherwise mess with our unit test. list.remove( 0 ); Assert.assertEquals( - TextComponent.toLegacyText( components ), - TextComponent.toLegacyText( list.toArray( new BaseComponent[ list.size() ] ) ) + TextComponent.toLegacyText( components ), + TextComponent.toLegacyText( list.toArray( new BaseComponent[ list.size() ] ) ) ); } @@ -60,7 +60,9 @@ public class ComponentsTest ComponentBuilder builder = new ComponentBuilder( "Hello " ); TextComponent textComponent = new TextComponent( "world " ); TranslatableComponent translatableComponent = new TranslatableComponent( "item.swordGold.name" ); - builder.append( new BaseComponent[] { // array based BaseComponent append + // array based BaseComponent append + builder.append( new BaseComponent[] + { textComponent, translatableComponent } );