mirror of https://github.com/apache/lucene.git
remove Java5 method call
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@477008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5569c9f610
commit
a37adee24c
|
@ -651,7 +651,7 @@ public class QueryParser implements QueryParserConstants {
|
|||
codePoint += hexToInt(curChar) * codePointMultiplier;
|
||||
codePointMultiplier >>>= 4;
|
||||
if (codePointMultiplier == 0) {
|
||||
length += Character.toChars(codePoint, output, length);
|
||||
output[length++] = (char)codePoint;
|
||||
codePoint = 0;
|
||||
}
|
||||
} else if (lastCharWasEscapeChar) {
|
||||
|
@ -1347,7 +1347,6 @@ public class QueryParser implements QueryParserConstants {
|
|||
final private void jj_rescan_token() {
|
||||
jj_rescan = true;
|
||||
for (int i = 0; i < 1; i++) {
|
||||
try {
|
||||
JJCalls p = jj_2_rtns[i];
|
||||
do {
|
||||
if (p.gen > jj_gen) {
|
||||
|
@ -1358,7 +1357,6 @@ public class QueryParser implements QueryParserConstants {
|
|||
}
|
||||
p = p.next;
|
||||
} while (p != null);
|
||||
} catch(LookaheadSuccess ls) { }
|
||||
}
|
||||
jj_rescan = false;
|
||||
}
|
||||
|
|
|
@ -675,7 +675,7 @@ public class QueryParser {
|
|||
codePoint += hexToInt(curChar) * codePointMultiplier;
|
||||
codePointMultiplier >>>= 4;
|
||||
if (codePointMultiplier == 0) {
|
||||
length += Character.toChars(codePoint, output, length);
|
||||
output[length++] = (char)codePoint;
|
||||
codePoint = 0;
|
||||
}
|
||||
} else if (lastCharWasEscapeChar) {
|
||||
|
|
|
@ -969,10 +969,12 @@ protected CharStream input_stream;
|
|||
private final int[] jjrounds = new int[37];
|
||||
private final int[] jjstateSet = new int[74];
|
||||
protected char curChar;
|
||||
public QueryParserTokenManager(CharStream stream){
|
||||
public QueryParserTokenManager(CharStream stream)
|
||||
{
|
||||
input_stream = stream;
|
||||
}
|
||||
public QueryParserTokenManager(CharStream stream, int lexState){
|
||||
public QueryParserTokenManager(CharStream stream, int lexState)
|
||||
{
|
||||
this(stream);
|
||||
SwitchTo(lexState);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue