diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageRegistry.java b/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageRegistry.java index 4e914bb38b..28d25d15ac 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageRegistry.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageRegistry.java @@ -28,12 +28,12 @@ public final class LanguageRegistry { languagesList.add(language); } - // sort languages by name. Avoiding differences in the order of languages + // sort languages by terse name. Avoiding differences in the order of languages // across JVM versions / OS. Collections.sort(languagesList, new Comparator() { @Override public int compare(Language o1, Language o2) { - return o1.getName().compareToIgnoreCase(o2.getName()); + return o1.getTerseName().compareToIgnoreCase(o2.getTerseName()); } });