Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
longtimeago committed Jun 27, 2015
1 parent 02a2dce commit 49c3197
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ private void checkField(final DetailAST ast, final DetailAST namenode) {
final DetailAST assign =
variable.findFirstToken(TokenTypes.ASSIGN);
if (assign != null) {
final DetailAST expression =
DetailAST expression =
assign.findFirstToken(TokenTypes.EXPR);
if (expression == null) {
expression = assign.findFirstToken(
TokenTypes.ARRAY_INIT
);
}
final String text = this.getText(expression);
if (text.contains(name)) {
++counter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
8:Private constant "INSTANCE" is not used
9:Private constant "FOREGROUND_FRACTIONS" is not used
7:Private constant "INSTANCE" is not used
8:Private constant "FOREGROUND_FRACTIONS" is not used

0 comments on commit 49c3197

Please sign in to comment.