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:
Shai Erera 2011-01-27 10:28:23 +00:00
parent b24a26b251
commit ad24f6a01f
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
}
}
}
}