This is an automated email from the ASF dual-hosted git repository. ggregory 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 d704c0d Fix spelling in comment. d704c0d is described below commit d704c0dc70a2f861c043785822854b4a0605ac6b Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Dec 20 13:23:54 2020 -0500 Fix spelling in comment. --- .../apache/commons/lang3/text/translate/NumericEntityUnescaper.java | 6 +++--- .../commons/lang3/text/translate/NumericEntityUnescaperTest.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java index 670fb07..c18f58d 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java @@ -26,7 +26,7 @@ import java.util.EnumSet; * Translate XML numeric entities of the form &#[xX]?\d+;? to * the specific codepoint. * - * Note that the semi-colon is optional. + * Note that the semicolon is optional. * * @since 3.0 * @deprecated as of 3.6, use commons-text @@ -50,7 +50,7 @@ public class NumericEntityUnescaper extends CharSequenceTranslator { semiColonOptional, /** - * Throw an exception if a semi-colon is missing. + * Throw an exception if a semicolon is missing. */ errorIfNoSemiColon } @@ -62,7 +62,7 @@ public class NumericEntityUnescaper extends CharSequenceTranslator { * Create a UnicodeUnescaper. * * The constructor takes a list of options, only one type of which is currently - * available (whether to allow, error or ignore the semi-colon on the end of a + * available (whether to allow, error or ignore the semicolon on the end of a * numeric entity to being missing). * * For example, to support numeric entities without a ';': 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 45755f3..ce5fe7c 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 @@ -56,7 +56,7 @@ public class NumericEntityUnescaperTest { String expected = "Test \u0030 not test"; String result = neu.translate(input); - assertEquals(expected, result, "Failed to support unfinished entities (i.e. missing semi-colon)"); + assertEquals(expected, result, "Failed to support unfinished entities (i.e. missing semicolon)"); // ignore it neu = new NumericEntityUnescaper(); @@ -64,7 +64,7 @@ public class NumericEntityUnescaperTest { expected = input; result = neu.translate(input); - assertEquals(expected, result, "Failed to ignore unfinished entities (i.e. missing semi-colon)"); + assertEquals(expected, result, "Failed to ignore unfinished entities (i.e. missing semicolon)"); // fail it final NumericEntityUnescaper failingNeu =