]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3600 Update description for Checkstyle rules ClassTypeParameterName and MethodT...
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 19 Sep 2012 08:25:22 +0000 (14:25 +0600)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Tue, 25 Sep 2012 07:31:24 +0000 (13:31 +0600)
plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle.properties
plugins/sonar-checkstyle-plugin/src/main/resources/org/sonar/l10n/checkstyle/rules/checkstyle/com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck.html

index 96efaa871df2768032625688ebba00cea6a8424c..1f14b18cdd7312776bc6601e252efcc2c80c5d0e 100644 (file)
@@ -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
index f34d4fc386897d0a49ac1a0b3c882c5c85f40d5b..649ec3c1cf12811f382f538d8f6a35f0b851fc95 100644 (file)
@@ -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]$":
 </p>
 <pre>
-public <type> type method() { // Non-compliant
+public <type> boolean containsAll(Collection<type> c) { // Non-compliant
   return null;
 }
 
-public <T> T method() { // Compliant
+public <T> boolean containsAll(Collection<T> c) { // Compliant
 }
 </pre>