From 21a84a6175c412ff85e5fc5d1538d94e977027db Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 26 Sep 2012 20:42:07 +0600 Subject: [PATCH] SONAR-3600 Update description for Checkstyle rules ClassTypeParameterName and MethodTypeParameterName --- ....checkstyle.checks.naming.ClassTypeParameterNameCheck.html | 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/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck.html b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck.html index 2e812af3fbc..ed1cb11d072 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck.html +++ b/plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck.html @@ -4,9 +4,9 @@ Checks that class parameter names conform to the specified format The following code snippet illustrates this rule for format "^[A-Z]$":

-class Something { // Non-compliant
+class Something<type> { // Non-compliant
 }
 
-class Something { // Compliant
+class Something<T> { // Compliant
 }
 
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 649ec3c1cf1..19bc06a2273 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  boolean containsAll(Collection c) { // Non-compliant
+public <type> boolean containsAll(Collection<type> c) { // Non-compliant
   return null;
 }
 
-public  boolean containsAll(Collection c) { // Compliant
+public <T> boolean containsAll(Collection<T> c) { // Compliant
 }
 
-- 2.39.5