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-text.git
The following commit(s) were added to refs/heads/master by this push: new ec0a2a18 [TEXT-230] Javadoc of org.apache.commons.text.lookup.DefaultStringLookup.XML is incorrect ec0a2a18 is described below commit ec0a2a1814cfd8aa8cc4560d7ef55fb555c4f1c0 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Aug 24 10:21:32 2023 -0400 [TEXT-230] Javadoc of org.apache.commons.text.lookup.DefaultStringLookup.XML is incorrect --- src/changes/changes.xml | 1 + .../java/org/apache/commons/text/lookup/DefaultStringLookup.java | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 47da1acb..6bcfa549 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -66,6 +66,7 @@ The <action> type attribute can be add,update,fix,remove. <action type="fix" dev="ggregory" due-to="Elliotte Rusty Harold, Gary Gregory">Constructor for ResourceBundleStringLookup should be private instead of package-private.</action> <action type="fix" dev="ggregory" due-to="Elliotte Rusty Harold, Gary Gregory">Constructor for UrlDecoderStringLookup should be private instead of package-private.</action> <action type="fix" dev="ggregory" due-to="Elliotte Rusty Harold, Gary Gregory">Constructor for UrlEncoderStringLookup should be private instead of package-private.</action> + <action issue="TEXT-230" type="fix" dev="ggregory" due-to="Michael Osipov, Gary Gregory">Javadoc of org.apache.commons.text.lookup.DefaultStringLookup.XML is incorrect.</action> <!-- ADD --> <action issue="TEXT-224" type="add" dev="ggregory" due-to="PJ Fanning, Gary Gregory">Set SecureProcessing feature in XmlStringLookup by default.</action> <action issue="TEXT-224" type="add" dev="ggregory" due-to="Gary Gregory">Add StringLookupFactory.xmlStringLookup(Map<String, Boolean>...).</action> diff --git a/src/main/java/org/apache/commons/text/lookup/DefaultStringLookup.java b/src/main/java/org/apache/commons/text/lookup/DefaultStringLookup.java index baf1351b..e4e4f2fc 100644 --- a/src/main/java/org/apache/commons/text/lookup/DefaultStringLookup.java +++ b/src/main/java/org/apache/commons/text/lookup/DefaultStringLookup.java @@ -41,7 +41,7 @@ public enum DefaultStringLookup { BASE64_DECODER(StringLookupFactory.KEY_BASE64_DECODER, StringLookupFactory.INSTANCE.base64DecoderStringLookup()), /** - * The lookup for Base64 decoding using the key {@code "base64Encoder"}. + * The lookup for Base64 encoding using the key {@code "base64Encoder"}. * @see StringLookupFactory#KEY_BASE64_ENCODER * @see StringLookupFactory#base64EncoderStringLookup() */ @@ -91,7 +91,7 @@ public enum DefaultStringLookup { JAVA(StringLookupFactory.KEY_JAVA, StringLookupFactory.INSTANCE.javaPlatformStringLookup()), /** - * The lookup for localhost information using the key {@code "localhost"}. + * The lookup for local host information using the key {@code "localhost"}. * @see StringLookupFactory#KEY_LOCALHOST * @see StringLookupFactory#localHostStringLookup() */ @@ -140,14 +140,14 @@ public enum DefaultStringLookup { URL_DECODER(StringLookupFactory.KEY_URL_DECODER, StringLookupFactory.INSTANCE.urlDecoderStringLookup()), /** - * The lookup for URL decoding using the key {@code "urlEncoder"}. + * The lookup for URL encoding using the key {@code "urlEncoder"}. * @see StringLookupFactory#KEY_URL_ENCODER * @see StringLookupFactory#urlEncoderStringLookup() */ URL_ENCODER(StringLookupFactory.KEY_URL_ENCODER, StringLookupFactory.INSTANCE.urlEncoderStringLookup()), /** - * The lookup for URL decoding using the key {@code "xml"}. + * The lookup for XML decoding using the key {@code "xml"}. * @see StringLookupFactory#KEY_XML * @see StringLookupFactory#xmlStringLookup() */