Repository: commons-text
Updated Branches:
  refs/heads/master a200b34e2 -> 6665a0209


http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/JavaUnicodeEscaperTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/JavaUnicodeEscaperTest.java 
b/src/test/java/org/apache/commons/text/translate/JavaUnicodeEscaperTest.java
index f2d4bea..b6afb4a 100644
--- 
a/src/test/java/org/apache/commons/text/translate/JavaUnicodeEscaperTest.java
+++ 
b/src/test/java/org/apache/commons/text/translate/JavaUnicodeEscaperTest.java
@@ -58,8 +58,9 @@ public class JavaUnicodeEscaperTest {
     public void testToUtf16Escape() throws UnsupportedEncodingException {
         final JavaUnicodeEscaper jue = JavaUnicodeEscaper.below('F');
         // According to 
https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B10000..U.2B10FFFF,
-        // Character ?,        U+24B62,        Binary Code Point 0010 0100 
1011 0110 0010,     Binary UTF-167 1101 1000 0101 0010 1101 1111 0110 0010, 
UTF-16 Hex Code Units D852 DF62
+        // Character ?, U+24B62, Binary Code Point 0010 0100 1011 0110 0010,
+        // Binary UTF-167 1101 1000 0101 0010 1101 1111 0110 0010, UTF-16 Hex 
Code Units D852 DF62
         final String encoding = jue.toUtf16Escape(Integer.parseInt("024B62", 
16));
-        assertEquals("\\uD852\\uDF62",encoding);
+        assertEquals("\\uD852\\uDF62", encoding);
     }
 }

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/LookupTranslatorTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/LookupTranslatorTest.java 
b/src/test/java/org/apache/commons/text/translate/LookupTranslatorTest.java
index 53fcef2..ebd83cd 100644
--- a/src/test/java/org/apache/commons/text/translate/LookupTranslatorTest.java
+++ b/src/test/java/org/apache/commons/text/translate/LookupTranslatorTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -60,4 +60,4 @@ public class LookupTranslatorTest  {
         new LookupTranslator(null);
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/NumericEntityEscaperTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/NumericEntityEscaperTest.java 
b/src/test/java/org/apache/commons/text/translate/NumericEntityEscaperTest.java
index efd3ddd..aa125a6 100644
--- 
a/src/test/java/org/apache/commons/text/translate/NumericEntityEscaperTest.java
+++ 
b/src/test/java/org/apache/commons/text/translate/NumericEntityEscaperTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/NumericEntityUnescaperTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/NumericEntityUnescaperTest.java
 
b/src/test/java/org/apache/commons/text/translate/NumericEntityUnescaperTest.java
index 898ec62..e510cbe 100644
--- 
a/src/test/java/org/apache/commons/text/translate/NumericEntityUnescaperTest.java
+++ 
b/src/test/java/org/apache/commons/text/translate/NumericEntityUnescaperTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -72,23 +72,25 @@ public class NumericEntityUnescaperTest  {
         try {
             result = neu.translate(input);
             fail("IllegalArgumentException expected");
-        } catch(final IllegalArgumentException iae) {
+        } catch (final IllegalArgumentException iae) {
             // expected
         }
     }
 
     @Test
     public void testCreatesNumericEntityUnescaperOne() {
-        final NumericEntityUnescaper.OPTION[] 
numericEntityUnescaper_OPTIONArray = new NumericEntityUnescaper.OPTION[0];
-        final NumericEntityUnescaper numericEntityUnescaper = new 
NumericEntityUnescaper(numericEntityUnescaper_OPTIONArray);
+        final NumericEntityUnescaper.OPTION[] 
numericEntityUnescaperOPTIONArray = new NumericEntityUnescaper.OPTION[0];
+        final NumericEntityUnescaper numericEntityUnescaper =
+                new NumericEntityUnescaper(numericEntityUnescaperOPTIONArray);
 
         assertEquals("2|y|O7y`&#uVWj", 
numericEntityUnescaper.translate("2|y|O7y`&#uVWj"));
     }
 
     @Test
     public void testCreatesNumericEntityUnescaperTwo() {
-        final NumericEntityUnescaper.OPTION[] 
numericEntityUnescaper_OPTIONArray = new NumericEntityUnescaper.OPTION[0];
-        final NumericEntityUnescaper numericEntityUnescaper = new 
NumericEntityUnescaper(numericEntityUnescaper_OPTIONArray);
+        final NumericEntityUnescaper.OPTION[] 
numericEntityUnescaperOPTIONArray = new NumericEntityUnescaper.OPTION[0];
+        final NumericEntityUnescaper numericEntityUnescaper =
+                new NumericEntityUnescaper(numericEntityUnescaperOPTIONArray);
 
         assertEquals("Ws2v8|O=7NR&#cB", 
numericEntityUnescaper.translate("Ws2v8|O=7NR&#cB"));
     }

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/OctalUnescaperTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/OctalUnescaperTest.java 
b/src/test/java/org/apache/commons/text/translate/OctalUnescaperTest.java
index 6b02dc8..864e12e 100644
--- a/src/test/java/org/apache/commons/text/translate/OctalUnescaperTest.java
+++ b/src/test/java/org/apache/commons/text/translate/OctalUnescaperTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/SinglePassTranslatorTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/SinglePassTranslatorTest.java 
b/src/test/java/org/apache/commons/text/translate/SinglePassTranslatorTest.java
index 6e682d9..13e43e2 100644
--- 
a/src/test/java/org/apache/commons/text/translate/SinglePassTranslatorTest.java
+++ 
b/src/test/java/org/apache/commons/text/translate/SinglePassTranslatorTest.java
@@ -60,4 +60,4 @@ public class SinglePassTranslatorTest {
         dummyTranslator.translate("(,Fk", 647, null);
     }
 
-}
\ No newline at end of file
+}

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/UnicodeEscaperTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/UnicodeEscaperTest.java 
b/src/test/java/org/apache/commons/text/translate/UnicodeEscaperTest.java
index 8f35802..9b3a3ff 100644
--- a/src/test/java/org/apache/commons/text/translate/UnicodeEscaperTest.java
+++ b/src/test/java/org/apache/commons/text/translate/UnicodeEscaperTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/UnicodeUnescaperTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/UnicodeUnescaperTest.java 
b/src/test/java/org/apache/commons/text/translate/UnicodeUnescaperTest.java
index 4be0c98..a840238 100644
--- a/src/test/java/org/apache/commons/text/translate/UnicodeUnescaperTest.java
+++ b/src/test/java/org/apache/commons/text/translate/UnicodeUnescaperTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -53,7 +53,7 @@ public class UnicodeUnescaperTest {
         try {
             uu.translate(input);
             fail("A lack of digits in a Unicode escape sequence failed to 
throw an exception");
-        } catch(final IllegalArgumentException iae) {
+        } catch (final IllegalArgumentException iae) {
             // expected
         }
     }

http://git-wip-us.apache.org/repos/asf/commons-text/blob/6665a020/src/test/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemoverTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemoverTest.java
 
b/src/test/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemoverTest.java
index cc1627d..ab688ab 100644
--- 
a/src/test/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemoverTest.java
+++ 
b/src/test/java/org/apache/commons/text/translate/UnicodeUnpairedSurrogateRemoverTest.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,14 +31,14 @@ import static org.junit.Assert.assertTrue;
 public class UnicodeUnpairedSurrogateRemoverTest {
     final UnicodeUnpairedSurrogateRemover subject = new 
UnicodeUnpairedSurrogateRemover();
     final CharArrayWriter writer = new CharArrayWriter(); // nothing is ever 
written to it
-    
+
     @Test
     public void testValidCharacters() throws IOException {
         assertFalse(subject.translate(0xd7ff, writer));
         assertFalse(subject.translate(0xe000, writer));
         assertEquals(0, writer.size());
     }
-    
+
     @Test
     public void testInvalidCharacters() throws IOException {
         assertTrue(subject.translate(0xd800, writer));

Reply via email to