From: Evgeny Mandrikov Date: Wed, 26 Sep 2012 14:42:07 +0000 (+0600) Subject: SONAR-3600 Update description for Checkstyle rules ClassTypeParameterName and MethodT... X-Git-Tag: 3.3~203 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21a84a6175c412ff85e5fc5d1538d94e977027db;p=sonarqube.git SONAR-3600 Update description for Checkstyle rules ClassTypeParameterName and MethodTypeParameterName --- 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
 }