diff --git a/pmd-java/src/main/resources/category/java/bestpractices.xml b/pmd-java/src/main/resources/category/java/bestpractices.xml index acb14b3c08..1cbc1fe9ab 100644 --- a/pmd-java/src/main/resources/category/java/bestpractices.xml +++ b/pmd-java/src/main/resources/category/java/bestpractices.xml @@ -424,16 +424,15 @@ public class Foo { - -(){{addAll("a","b","c");}}; + (){%raw%}{{ addAll("a","b","c"); }};{%endraw%} - // the better way is to not create an anonymous class: - List a=new ArrayList<>(); - a.addAll("a","b","c"); - return a; - ]]> +// the better way is to not create an anonymous class: +List a = new ArrayList<>(); +a.addAll("a","b","c"); +return a; +]]>