From 40ed158204248d9c1311b9ebfb6b98e4124abf35 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 24 Feb 2017 15:00:52 +0100 Subject: [PATCH] Sort languages by terse name --- .../main/java/net/sourceforge/pmd/lang/LanguageRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } });