mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed deprecated in Idea 6 method FlexLexer.reset(CharSequence, int)
This commit is contained in:
@@ -283,18 +283,6 @@ public class _BuildoutCfgFlexLexer implements FlexLexer, BuildoutCfgTokenTypes {
|
||||
yybegin(initialState);
|
||||
}
|
||||
|
||||
// For Demetra compatibility
|
||||
public void reset(CharSequence buffer, int initialState){
|
||||
zzBuffer = buffer;
|
||||
zzBufferArray = null;
|
||||
zzCurrentPos = zzMarkedPos = zzStartRead = 0;
|
||||
zzPushbackPos = 0;
|
||||
zzAtEOF = false;
|
||||
zzAtBOL = true;
|
||||
zzEndRead = buffer.length();
|
||||
yybegin(initialState);
|
||||
}
|
||||
|
||||
/**
|
||||
* Refills the input buffer.
|
||||
*
|
||||
|
||||
@@ -629,18 +629,6 @@ class _PythonLexer implements FlexLexer {
|
||||
yybegin(initialState);
|
||||
}
|
||||
|
||||
// For Demetra compatibility
|
||||
public void reset(CharSequence buffer, int initialState){
|
||||
zzBuffer = buffer;
|
||||
zzBufferArray = null;
|
||||
zzCurrentPos = zzMarkedPos = zzStartRead = 0;
|
||||
zzPushbackPos = 0;
|
||||
zzAtEOF = false;
|
||||
zzAtBOL = true;
|
||||
zzEndRead = buffer.length();
|
||||
yybegin(initialState);
|
||||
}
|
||||
|
||||
/**
|
||||
* Refills the input buffer.
|
||||
*
|
||||
|
||||
@@ -98,7 +98,7 @@ public class BuildoutCfgLexerTest extends TestCase {
|
||||
|
||||
public static _BuildoutCfgFlexLexer createLexer(String text) {
|
||||
_BuildoutCfgFlexLexer lexer = new _BuildoutCfgFlexLexer((Reader)null);
|
||||
lexer.reset(text, _BuildoutCfgFlexLexer.YYINITIAL);
|
||||
lexer.reset(text, 0, text.length(), _BuildoutCfgFlexLexer.YYINITIAL);
|
||||
return lexer;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user