diff --git a/src/test/org/apache/commons/lang/text/StrLookupTest.java b/src/test/org/apache/commons/lang/text/StrLookupTest.java index 6990d4c55..50065e8b2 100644 --- a/src/test/org/apache/commons/lang/text/StrLookupTest.java +++ b/src/test/org/apache/commons/lang/text/StrLookupTest.java @@ -82,7 +82,7 @@ public class StrLookupTest extends TestCase { } public void testMapLookup() { - Map map = new HashMap(); + Map map = new HashMap(); map.put("key", "value"); map.put("number", new Integer(2)); assertEquals("value", StrLookup.mapLookup(map).lookup("key")); @@ -93,7 +93,7 @@ public class StrLookupTest extends TestCase { } public void testMapLookup_nullMap() { - Map map = null; + Map map = null; assertEquals(null, StrLookup.mapLookup(map).lookup(null)); assertEquals(null, StrLookup.mapLookup(map).lookup("")); assertEquals(null, StrLookup.mapLookup(map).lookup("any")); diff --git a/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java b/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java index 340591f3e..89d83c53b 100644 --- a/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java +++ b/src/test/org/apache/commons/lang/text/StrSubstitutorTest.java @@ -35,7 +35,7 @@ import org.apache.commons.lang.mutable.MutableObject; */ public class StrSubstitutorTest extends TestCase { - private Map values; + private Map values; /** * Main method. @@ -60,7 +60,7 @@ public class StrSubstitutorTest extends TestCase { @Override protected void setUp() throws Exception { super.setUp(); - values = new HashMap(); + values = new HashMap(); values.put("animal", "quick brown fox"); values.put("target", "lazy dog"); } @@ -228,7 +228,7 @@ public class StrSubstitutorTest extends TestCase { * The cycle should be detected and cause an exception to be thrown. */ public void testCyclicReplacement() { - Map map = new HashMap(); + Map map = new HashMap(); map.put("animal", "${critter}"); map.put("target", "${pet}"); map.put("pet", "${petCharacteristic} dog"); @@ -283,7 +283,7 @@ public class StrSubstitutorTest extends TestCase { */ public void testResolveVariable() { final StrBuilder builder = new StrBuilder("Hi ${name}!"); - Map map = new HashMap(); + Map map = new HashMap(); map.put("name", "commons"); StrSubstitutor sub = new StrSubstitutor(map) { @Override @@ -312,7 +312,7 @@ public class StrSubstitutorTest extends TestCase { * Tests constructor. */ public void testConstructorMapPrefixSuffix() { - Map map = new HashMap(); + Map map = new HashMap(); map.put("name", "commons"); StrSubstitutor sub = new StrSubstitutor(map, "<", ">"); assertEquals("Hi < commons", sub.replace("Hi $< ")); @@ -322,7 +322,7 @@ public class StrSubstitutorTest extends TestCase { * Tests constructor. */ public void testConstructorMapFull() { - Map map = new HashMap(); + Map map = new HashMap(); map.put("name", "commons"); StrSubstitutor sub = new StrSubstitutor(map, "<", ">", '!'); assertEquals("Hi < commons", sub.replace("Hi !< ")); @@ -406,7 +406,7 @@ public class StrSubstitutorTest extends TestCase { * Tests static. */ public void testStaticReplace() { - Map map = new HashMap(); + Map map = new HashMap(); map.put("name", "commons"); assertEquals("Hi commons!", StrSubstitutor.replace("Hi ${name}!", map)); } @@ -415,7 +415,7 @@ public class StrSubstitutorTest extends TestCase { * Tests static. */ public void testStaticReplacePrefixSuffix() { - Map map = new HashMap(); + Map map = new HashMap(); map.put("name", "commons"); assertEquals("Hi commons!", StrSubstitutor.replace("Hi !", map, "<", ">")); } @@ -468,7 +468,7 @@ public class StrSubstitutorTest extends TestCase { } // replace using object - MutableObject obj = new MutableObject(replaceTemplate); // toString returns template + MutableObject obj = new MutableObject(replaceTemplate); // toString returns template assertEquals(expectedResult, sub.replace(obj)); // replace in StringBuffer diff --git a/src/test/org/apache/commons/lang/text/StrTokenizerTest.java b/src/test/org/apache/commons/lang/text/StrTokenizerTest.java index 43b18fcf1..3a73fec6f 100644 --- a/src/test/org/apache/commons/lang/text/StrTokenizerTest.java +++ b/src/test/org/apache/commons/lang/text/StrTokenizerTest.java @@ -491,7 +491,7 @@ public class StrTokenizerTest extends TestCase { String input = "a b c"; StrTokenizer tok = new StrTokenizer(input); String[] array = tok.getTokenArray(); - List list = tok.getTokenList(); + List list = tok.getTokenList(); assertEquals(Arrays.asList(array), list); assertEquals(3, list.size()); @@ -813,7 +813,7 @@ public class StrTokenizerTest extends TestCase { public void testTokenizeSubclassInputChange() { StrTokenizer tkn = new StrTokenizer("a b c d e") { @Override - protected List tokenize(char[] chars, int offset, int count) { + protected List tokenize(char[] chars, int offset, int count) { return super.tokenize("w x y z".toCharArray(), 2, 5); } }; @@ -825,8 +825,8 @@ public class StrTokenizerTest extends TestCase { public void testTokenizeSubclassOutputChange() { StrTokenizer tkn = new StrTokenizer("a b c") { @Override - protected List tokenize(char[] chars, int offset, int count) { - List list = super.tokenize(chars, offset, count); + protected List tokenize(char[] chars, int offset, int count) { + List list = super.tokenize(chars, offset, count); Collections.reverse(list); return list; }