Fix spelling in comment.

This commit is contained in:
Gary Gregory 2020-12-20 13:23:54 -05:00
parent bed6b1128d
commit d704c0dc70
2 changed files with 5 additions and 5 deletions

View File

@ -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 ';':

View File

@ -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 =