This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d2e68560 NumericEntityUnescaperTest: Use less vertical space
2d2e68560 is described below

commit 2d2e68560fb001c7fa8f8d6f7475f3b800acd995
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jun 2 07:28:06 2026 -0400

    NumericEntityUnescaperTest: Use less vertical space
---
 .../commons/lang3/text/translate/NumericEntityUnescaperTest.java  | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaperTest.java
 
b/src/test/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaperTest.java
index bcf8b4fbe..751a0ece4 100644
--- 
a/src/test/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaperTest.java
+++ 
b/src/test/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaperTest.java
@@ -52,7 +52,6 @@ void testSupplementaryUnescaping() {
         final NumericEntityUnescaper neu = new NumericEntityUnescaper();
         final String input = "&#68642;";
         final String expected = "\uD803\uDC22";
-
         final String result = neu.translate(input);
         assertEquals(expected, result, "Failed to unescape numeric entities 
supplementary characters");
     }
@@ -63,21 +62,16 @@ void testUnfinishedEntity() {
         NumericEntityUnescaper neu = new 
NumericEntityUnescaper(NumericEntityUnescaper.OPTION.semiColonOptional);
         String input = "Test &#x30 not test";
         String expected = "Test \u0030 not test";
-
         String result = neu.translate(input);
         assertEquals(expected, result, "Failed to support unfinished entities 
(i.e. missing semicolon)");
-
         // ignore it
         neu = new NumericEntityUnescaper();
         input = "Test &#x30 not test";
         expected = input;
-
         result = neu.translate(input);
         assertEquals(expected, result, "Failed to ignore unfinished entities 
(i.e. missing semicolon)");
-
         // fail it
-        final NumericEntityUnescaper failingNeu =
-                new 
NumericEntityUnescaper(NumericEntityUnescaper.OPTION.errorIfNoSemiColon);
+        final NumericEntityUnescaper failingNeu = new 
NumericEntityUnescaper(NumericEntityUnescaper.OPTION.errorIfNoSemiColon);
         final String failingInput = "Test &#x30 not test";
         assertIllegalArgumentException(() -> 
failingNeu.translate(failingInput));
     }

Reply via email to