mirror of https://github.com/apache/lucene.git
LUCENE-1469: make isValid protected and not static
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1064072 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b24a26b251
commit
ad24f6a01f
|
@ -161,7 +161,7 @@ public class SynonymMap {
|
|||
return word.toLowerCase();
|
||||
}
|
||||
|
||||
private static boolean isValid(String str) {
|
||||
protected boolean isValid(String str) {
|
||||
for (int i=str.length(); --i >= 0; ) {
|
||||
if (!Character.isLetter(str.charAt(i))) return false;
|
||||
}
|
||||
|
@ -395,4 +395,4 @@ public class SynonymMap {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue