Merge branch 'master' of https://github.com/nickwongwong/commons-text
Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/9c7dff19 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/9c7dff19 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/9c7dff19 Branch: refs/heads/master Commit: 9c7dff199a3ccd84f817b0ad8a76659cb26fd16a Parents: 8ae4ff0 189f421 Author: Rob Tompkins <chtom...@apache.org> Authored: Fri Sep 28 12:43:59 2018 -0400 Committer: Rob Tompkins <chtom...@apache.org> Committed: Fri Sep 28 12:43:59 2018 -0400 ---------------------------------------------------------------------- .../text/lookup/AbstractStringLookup.java | 12 +++++++++ .../commons/text/lookup/ScriptStringLookup.java | 4 +-- .../text/lookup/StringLookupFactory.java | 1 + .../commons/text/lookup/UrlStringLookup.java | 5 ++-- .../text/similarity/JaccardSimilarity.java | 27 ++++++++------------ src/test/resources/document.properties | 2 +- 6 files changed, 30 insertions(+), 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/9c7dff19/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java ---------------------------------------------------------------------- diff --cc src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java index e3c44e9,404bbdc..4dbdb65 --- a/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java +++ b/src/main/java/org/apache/commons/text/lookup/AbstractStringLookup.java @@@ -24,8 -24,14 +24,20 @@@ package org.apache.commons.text.lookup */ abstract class AbstractStringLookup implements StringLookup { ++ ++ /** ++ * The empty string. ++ */ + private static final String EMPTY = ""; ++ + /** + * The default split char. + */ protected static final char SPLIT_CH = ':'; + + /** + * The default split string. + */ protected static final String SPLIT_STR = String.valueOf(SPLIT_CH); /** http://git-wip-us.apache.org/repos/asf/commons-text/blob/9c7dff19/src/main/java/org/apache/commons/text/lookup/ScriptStringLookup.java ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/9c7dff19/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/9c7dff19/src/main/java/org/apache/commons/text/lookup/UrlStringLookup.java ----------------------------------------------------------------------