Fix formatting
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -5,7 +5,9 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class TranslatableComponentTest {
|
||||
public class TranslatableComponentTest
|
||||
{
|
||||
|
||||
@Test
|
||||
public void testMissingPlaceholdersAdded()
|
||||
{
|
||||
|
Reference in New Issue
Block a user