useless ; in java code removed

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4634 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2006-10-13 02:01:41 +00:00
parent 8189d97f05
commit d60c00c5ab
2 changed files with 5 additions and 6 deletions

View File

@ -1160,7 +1160,7 @@ Token t;
jjtThis.setModifiers(modifiers);
}
{
t = <IDENTIFIER> {;
t = <IDENTIFIER> {
if (!t.image.equals("enum")) {
throw new ParseException("ERROR: expecting enum");
}
@ -1312,7 +1312,7 @@ Token t;}
"{"
[ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ]
( BlockStatement() )*
t = "}" { if (isPrecededByComment(t)) { jjtThis.setContainsComment(); }; }
t = "}" { if (isPrecededByComment(t)) { jjtThis.setContainsComment(); } }
}
void ExplicitConstructorInvocation() :
@ -1740,7 +1740,7 @@ void LabeledStatement() :
void Block() :
{Token t;}
{
"{" ( BlockStatement() )* t = "}" { if (isPrecededByComment(t)) { jjtThis.setContainsComment(); }; }
"{" ( BlockStatement() )* t = "}" { if (isPrecededByComment(t)) { jjtThis.setContainsComment(); } }
}
void BlockStatement():

View File

@ -585,7 +585,6 @@ jjtree.openNodeScope(jjtn000);Token t;
jjtn000.setModifiers(modifiers);
try {
t = jj_consume_token(IDENTIFIER);
;
if (!t.image.equals("enum")) {
{if (true) throw new ParseException("ERROR: expecting enum");}
}
@ -1584,7 +1583,7 @@ Token t;
t = jj_consume_token(RBRACE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
if (isPrecededByComment(t)) { jjtn000.setContainsComment(); };
if (isPrecededByComment(t)) { jjtn000.setContainsComment(); }
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
@ -4074,7 +4073,7 @@ jjtree.openNodeScope(jjtn000);Token t;
t = jj_consume_token(RBRACE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
if (isPrecededByComment(t)) { jjtn000.setContainsComment(); };
if (isPrecededByComment(t)) { jjtn000.setContainsComment(); }
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);