From 3335cdeb4d69cacf5b8d8d2881d8ab4dc3b8cd03 Mon Sep 17 00:00:00 2001 From: Oliver Burn Date: Sun, 13 Jan 2002 06:34:38 +0000 Subject: [PATCH] Moved the reference checking to java.g --- src/checkstyle/com/puppycrawl/tools/checkstyle/java.g | 2 +- src/checkstyle/com/puppycrawl/tools/checkstyle/java.tree.g | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g index 510c76e14..ee6d80466 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g @@ -853,7 +853,7 @@ postfixExpression ( // qualified id (id.id.id.id...) -- build the name DOT^ ( IDENT {ver.reportReference(sFirstIdent);} | "this" - | "class" + | "class" {ver.reportReference(sFirstIdent);} | newExpression | "super" // ClassName.super.field ) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.tree.g b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.tree.g index 97fba5137..af883ba6f 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.tree.g +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.tree.g @@ -408,7 +408,7 @@ primaryExpression (i2:IDENT { firstExprIdent = null;} | arrayIndex | "this" - | "class" { if (firstExprIdent != null) { ver.reportReference(firstExprIdent.getText()); } } + | "class" | #( "new" IDENT elist ) | "super" )