diff --git a/pmd-java/src/main/resources/category/java/errorprone.xml b/pmd-java/src/main/resources/category/java/errorprone.xml index d78a19c96f..c1d15cc1fd 100644 --- a/pmd-java/src/main/resources/category/java/errorprone.xml +++ b/pmd-java/src/main/resources/category/java/errorprone.xml @@ -2179,11 +2179,12 @@ public class Foo extends TestCase { -Non-constructor methods should not have the same name as the enclosing class. +A method should not have the same name as its containing class. +This would be confusing as it would look like a constructor. 3