Skip to content

Commit

Permalink
acl
Browse files Browse the repository at this point in the history
  • Loading branch information
YTG1234 committed Nov 1, 2020
1 parent 22617d6 commit f7c14ed
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ public int[] getRequiredTokens() {
return getDefaultTokens();
}

public FromModuleCheck() {
setSeverity("info");
}

@Override
public void visitToken(DetailAST ast) {
try {
Expand All @@ -36,16 +32,14 @@ public void visitToken(DetailAST ast) {
modifier.findFirstToken(TokenTypes.IDENT).getText().equals("ModifyArg") ||
modifier.findFirstToken(TokenTypes.IDENT).getText().equals("ModifyArgs")) {
foundMixinMethod = true;
log(ast.getLineNo(), "Found Mixin injection");
}
if (modifier.findFirstToken(TokenTypes.IDENT).getText().equals("FromModule")) {
foundFromModule = true;
log(ast.getLineNo(), "Found FromModule");
}
modifier = modifier.getNextSibling();
}
if (foundMixinMethod && !foundFromModule) {
log(ast.getLineNo(), "All Mixin injections have to have a @FromModule annotation!");
log(modifier.getLineNo(), "All Mixin injections have to have a @FromModule annotation!");
}
} catch (Throwable t) {
System.out.println(t.toString());
Expand Down

0 comments on commit f7c14ed

Please sign in to comment.