You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/08/29 00:02:26 UTC

[text] Fix for: Make it easier to build custom lookups by calling org.apache.commons.text.lookup.StringLookupFactory.addDefaultStringLookups().

Repository: commons-text
Updated Branches:
  refs/heads/master 14d5af257 -> 1ff76e9f7


Fix for: Make it easier to build custom lookups by calling
org.apache.commons.text.lookup.StringLookupFactory.addDefaultStringLookups().

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/1ff76e9f
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/1ff76e9f
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/1ff76e9f

Branch: refs/heads/master
Commit: 1ff76e9f762cbca0e41bdfbace89ca45186baf95
Parents: 14d5af2
Author: Gary Gregory <ga...@gmail.com>
Authored: Tue Aug 28 18:02:23 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Tue Aug 28 18:02:23 2018 -0600

----------------------------------------------------------------------
 .../org/apache/commons/text/lookup/InterpolatorStringLookup.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/1ff76e9f/src/main/java/org/apache/commons/text/lookup/InterpolatorStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/InterpolatorStringLookup.java b/src/main/java/org/apache/commons/text/lookup/InterpolatorStringLookup.java
index 71e3b72..068ac0a 100644
--- a/src/main/java/org/apache/commons/text/lookup/InterpolatorStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/InterpolatorStringLookup.java
@@ -127,7 +127,7 @@ class InterpolatorStringLookup extends AbstractStringLookup {
             this.stringLookupMap.put(entry.getKey().toLowerCase(Locale.ROOT), entry.getValue());
         }
         if (addDefaultLookups) {
-            StringLookupFactory.INSTANCE.addDefaultStringLookups(stringLookupMap);
+            StringLookupFactory.INSTANCE.addDefaultStringLookups(this.stringLookupMap);
         }
     }