From 7d5a2853eb0df65886dd2b9e7daa30d2aaa208b4 Mon Sep 17 00:00:00 2001 From: Oleg Sukhodolsky Date: Thu, 5 Jun 2003 07:09:08 +0000 Subject: [PATCH] Grammar improvement. Now STATIC_INIT node should have correct line and column numbers. --- src/checkstyle/com/puppycrawl/tools/checkstyle/java.g | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g index 9902ab930..fc1878858 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/java.g @@ -293,8 +293,10 @@ field! ) // "static { ... }" class initializer - | "static" s3:compoundStatement - {#field = #(#[STATIC_INIT,"STATIC_INIT"], s3);} + | si:"static" s3:compoundStatement + {#si.setType(STATIC_INIT); + #si.setText("STATIC_INIT"); + #field = #(#si, s3);} // "{ ... }" instance initializer | s4:compoundStatement