Fix rename

This commit is contained in:
Clément Fournier
2022-03-07 22:00:14 +01:00
parent 1ecbbca27c
commit 7be498ae32
2 changed files with 6 additions and 6 deletions

View File

@ -561,7 +561,7 @@ PARSER_END(JavaParserImpl)
TOKEN_MGR_DECLS :
{
protected List<Comment> comments = new ArrayList<Comment>();
protected List<JavaComment> comments = new ArrayList<JavaComment>();
}
/* WHITE SPACE */
@ -587,7 +587,7 @@ SPECIAL_TOKEN :
if (startOfNOPMD != -1) {
suppressMap.put(matchedToken.getBeginLine(), matchedToken.getImage().substring(startOfNOPMD + suppressMarker.length()));
}
comments.add(new Comment(matchedToken));
comments.add(new JavaComment(matchedToken));
}
}
@ -608,7 +608,7 @@ SPECIAL_TOKEN :
<IN_MULTI_LINE_COMMENT>
SPECIAL_TOKEN :
{
<MULTI_LINE_COMMENT: "*/" > { comments.add(new Comment(matchedToken)); } : DEFAULT
<MULTI_LINE_COMMENT: "*/" > { comments.add(new JavaComment(matchedToken)); } : DEFAULT
}
<IN_FORMAL_COMMENT,IN_MULTI_LINE_COMMENT>
@ -2612,14 +2612,14 @@ void AssertStatement() :
void RUNSIGNEDSHIFT() #void:
{}
{
LOOKAHEAD({ JavaTokenDocument.getRealKind(getToken(1)) == RUNSIGNEDSHIFT})
LOOKAHEAD({ JavaTokenDocumentBehavior.getRealKind(getToken(1)) == RUNSIGNEDSHIFT})
">" ">" ">"
}
void RSIGNEDSHIFT() #void:
{}
{
LOOKAHEAD({ JavaTokenDocument.getRealKind(getToken(1)) == RSIGNEDSHIFT})
LOOKAHEAD({ JavaTokenDocumentBehavior.getRealKind(getToken(1)) == RSIGNEDSHIFT})
">" ">"
}

View File

@ -43,7 +43,7 @@ public class JavaTokenizer extends JavaCCTokenizer {
}
@Override
protected JavaccTokenDocument.TokenDocumentBehavior tokenBehavior() throws IOException {
protected JavaccTokenDocument.TokenDocumentBehavior tokenBehavior() {
return InternalApiBridge.javaTokenDoc();
}