From 736f1fa0b159c17d7f67571916f1d73a5046a4e2 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 19 Sep 2012 14:25:22 +0600 Subject: [PATCH] SONAR-3600 Update description for Checkstyle rules ClassTypeParameterName and MethodTypeParameterName --- .../src/main/resources/org/sonar/l10n/checkstyle.properties | 4 ++-- ...checkstyle.checks.naming.MethodTypeParameterNameCheck.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties index 96efaa871df..1f14b18cdd7 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties +++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties @@ -338,5 +338,5 @@ rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck.pa rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck.param.maxProtected=maximum allowable number of protected methods. rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck.param.maxPublic=maximum allowable number of public methods. rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck.name=One Statement Per Line -rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck.name=Class Type Parameter Name -rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.name=Method Type Parameter Name +rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck.name=Class Type(Generic) Parameter Name +rule.checkstyle.com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.name=Method Type(Generic) Parameter Name diff --git a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.html b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.html index f34d4fc3868..649ec3c1cf1 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.html +++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.html @@ -4,10 +4,10 @@ Checks that method type parameter names conform to the specified format The following code snippet illustrates this rule for format "^[A-Z]$":

-public  type method() { // Non-compliant
+public  boolean containsAll(Collection c) { // Non-compliant
   return null;
 }
 
-public  T method() { // Compliant
+public  boolean containsAll(Collection c) { // Compliant
 }
 
-- 2.39.5