diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DesignForInheritanceCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DesignForInheritanceCheck.java index 953a6d08f..5ff2ae14f 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DesignForInheritanceCheck.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DesignForInheritanceCheck.java @@ -53,7 +53,7 @@ import com.puppycrawl.tools.checkstyle.api.ScopeUtils; *

* * @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); } diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties index 7085fb237..1bc56f456 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages.properties @@ -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. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_de.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_de.properties index 5f4a9f43f..ee00c3b82 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_de.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_de.properties @@ -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. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fi.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fi.properties index 9b4910419..d25eb1ded 100755 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fi.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fi.properties @@ -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. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties index 255932208..7689ef754 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_fr.properties @@ -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. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_pt.properties b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_pt.properties index a30c238ef..f239ee3a0 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_pt.properties +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/messages_pt.properties @@ -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.