i18n DesignForInheritance

This commit is contained in:
Lars Kühne 2003-03-30 13:25:56 +00:00
parent 712a812fdd
commit b42ddf006f
6 changed files with 12 additions and 4 deletions

View File

@ -53,7 +53,7 @@ import com.puppycrawl.tools.checkstyle.api.ScopeUtils;
* </p>
*
* @author lkuehne
* @version $Revision: 1.2 $
* @version $Revision: 1.3 $
*/
public class DesignForInheritanceCheck extends Check
{
@ -117,10 +117,8 @@ public class DesignForInheritanceCheck extends Check
if (hasDefaultConstructor || hasExplNonPrivateCtor) {
String name = aAST.findFirstToken(TokenTypes.IDENT).getText();
// TODO: i18n
log(aAST.getLineNo(), aAST.getColumnNo(),
"Method '" + name + "' is not designed for inheritance "
+ "- needs to be abstract, final or empty.");
"design.forInheritance", name);
}

View File

@ -74,3 +74,5 @@ simplify.expression=Expression can be simplified.
simplify.boolreturn=Conditional logic can be removed.
doublechecked.locking.avoid=The double-checked locking idiom is broken and should be avoided.
design.forInheritance=Method ''{0}'' is not designed for inheritance - needs to be abstract, final or empty.

View File

@ -75,3 +75,5 @@ simplify.expression=Der Ausdruck kann vereinfacht werden.
simplify.boolreturn=Die Verzweigung sollte entfernt werden.
doublechecked.locking.avoid=Das ''double-checked locking'' Idiom sollte vermieden werden.
design.forInheritance=Die Methode ''{0}'' ist nicht für Vererbung entworfen - muss abstract, final oder leer sein.

View File

@ -74,3 +74,5 @@ simplify.expression=Ilmaisua voisi yksinkertaistaa.
simplify.boolreturn=Konditionaalilogiikan voisi poistaa.
doublechecked.locking.avoid=The double-checked locking idiom is broken and should be avoided.
design.forInheritance=Method ''{0}'' is not designed for inheritance - needs to be abstract, final or empty.

View File

@ -74,3 +74,5 @@ simplify.expression=L'expression peut-
simplify.boolreturn=Supprimez la logique conditionnelle.
doublechecked.locking.avoid=The double-checked locking idiom is broken and should be avoided.
design.forInheritance=Method ''{0}'' is not designed for inheritance - needs to be abstract, final or empty.

View File

@ -74,3 +74,5 @@ simplify.expression=Express
simplify.boolreturn=A lógica condicional deve ser removida.
doublechecked.locking.avoid=The double-checked locking idiom is broken and should be avoided.
design.forInheritance=Method ''{0}'' is not designed for inheritance - needs to be abstract, final or empty.