i18n of AvoidNestedBlocksCkeck

This commit is contained in:
Lars Kühne 2003-05-18 06:56:28 +00:00
parent 896b671caa
commit c1863ec7e2
3 changed files with 5 additions and 4 deletions

View File

@ -63,8 +63,7 @@ public class AvoidNestedBlocksCheck extends Check
public void visitToken(DetailAST aAST)
{
if (aAST.getParent().getType() == TokenTypes.SLIST) {
// TODO: i18n
log(aAST.getLineNo(), aAST.getColumnNo(), "Avoid nested blocks");
log(aAST.getLineNo(), aAST.getColumnNo(), "block.nested");
}
}

View File

@ -58,6 +58,7 @@ mod.order=''{0}'' modifier out of order with the JLS suggestions.
block.noStmt=Must have at least one statement.
block.empty=Empty {0} block.
block.nested=Avoid nested blocks.
maxParam=More than {0,number,integer} parameters.
@ -78,8 +79,8 @@ doublechecked.locking.avoid=The double-checked locking idiom is broken and shoul
design.forInheritance=Method ''{0}'' is not designed for inheritance - needs to be abstract, final or empty.
final.class=Class {0} should be declared as final
missing.switch.default=switch without \"default\" clause
final.class=Class {0} should be declared as final.
missing.switch.default=switch without \"default\" clause.
empty.statement=Empty statement.

View File

@ -59,6 +59,7 @@ mod.order=''{0}'' Modifier weicht von der empfohlenen Modifier-Reihenfolge aus d
block.noStmt=Muss mindestens ein Statement beinhalten.
block.empty=Leerer {0} Block.
block.nested=Verschachtelte Blöcke sollten vermieden werden.
maxParam=Mehr als {0,number,integer} Parameter.