Fix formatting

This commit is contained in:
md_5
2016-04-24 22:31:04 +10:00
parent 1cd3e42182
commit 80b3135a93
24 changed files with 356 additions and 347 deletions

View File

@@ -250,11 +250,13 @@ public class ComponentBuilder
{
/**
* Specify that we do not want to retain anything from the previous component.
* Specify that we do not want to retain anything from the previous
* component.
*/
NONE,
/**
* Specify that we want the formatting retained from the previous component.
* Specify that we want the formatting retained from the previous
* component.
*/
FORMATTING,
/**
@@ -262,7 +264,8 @@ public class ComponentBuilder
*/
EVENTS,
/**
* Specify that we want to retain everything from the previous component.
* Specify that we want to retain everything from the previous
* component.
*/
ALL
}

View File

@@ -140,7 +140,8 @@ public class TranslatableComponent extends BaseComponent
try
{
trans = locales.getString( translate );
} catch ( MissingResourceException e ) {
} catch ( MissingResourceException ex )
{
trans = translate;
}
@@ -184,7 +185,8 @@ public class TranslatableComponent extends BaseComponent
try
{
trans = locales.getString( translate );
} catch ( MissingResourceException e ) {
} catch ( MissingResourceException e )
{
trans = translate;
}

View File

@@ -5,7 +5,9 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class TranslatableComponentTest {
public class TranslatableComponentTest
{
@Test
public void testMissingPlaceholdersAdded()
{