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 b16fbdef Make package-private class private and final: MapStrLookup
b16fbdef is described below

commit b16fbdeff91733f308f3975fff1b61e20b9195bb
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Apr 23 09:35:35 2024 -0400

    Make package-private class private and final: MapStrLookup
---
 src/changes/changes.xml                              | 1 +
 src/main/java/org/apache/commons/text/StrLookup.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index d9f40b6b..cd44d903 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -51,6 +51,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix build on Java 
23-ea.</action>
     <action type="fix" dev="ggregory" due-to="Gary Gregory">Make internal 
constructor private for 
org.apache.commons.text.StrLookup.MapStrLookup.MapStrLookup(Map).</action>
     <action type="fix" dev="ggregory" due-to="Gary Gregory">Make internal 
constructor private for 
org.apache.commons.text.StrLookup.SystemPropertiesStrLookup.SystemPropertiesStrLookup().</action>
+    <action type="fix" dev="ggregory" due-to="Gary Gregory">Make 
package-private class private and final: MapStrLookup.</action>
     <!-- UPDATE -->
     <action type="udpate" dev="ggregory" due-to="Gary Gregory">Bump tests on 
Java >= 22 org.graalvm.*:* from 24.0.0 to 24.0.1.</action>
   </release>
diff --git a/src/main/java/org/apache/commons/text/StrLookup.java 
b/src/main/java/org/apache/commons/text/StrLookup.java
index dcfcc17f..1fe45257 100644
--- a/src/main/java/org/apache/commons/text/StrLookup.java
+++ b/src/main/java/org/apache/commons/text/StrLookup.java
@@ -51,7 +51,7 @@ public abstract class StrLookup<V> implements StringLookup {
      *
      * @param <V> the type of the values supported by the lookup
      */
-    static class MapStrLookup<V> extends StrLookup<V> {
+    private static final class MapStrLookup<V> extends StrLookup<V> {
 
         /** Map keys are variable names and value. */
         private final Map<String, V> map;

Reply via email to