diff --git a/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java b/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java index 6e386a8bd6..d2dbcd2152 100644 --- a/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java +++ b/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java @@ -158,12 +158,13 @@ public class AbstractLanguageVersionTest { int count = 0; for (LanguageVersion lv : lang.getVersions()) { - if (lv.equals(expected)) + if (lv.equals(expected)) { count++; + } } assertEquals("Expected exactly one occurrence of " + expected - + " in the language versions of its language",1, count); + + " in the language versions of its language", 1, count); } private void assertRulesetsAndCategoriesProperties(ResourceLoader rl, Properties props)