diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ApexLanguageModule.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ApexLanguageModule.java index 40d1da6beb..6a53314961 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ApexLanguageModule.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ApexLanguageModule.java @@ -10,7 +10,6 @@ import net.sourceforge.pmd.lang.BaseLanguageModule; import net.sourceforge.pmd.lang.Language; import net.sourceforge.pmd.lang.LanguageRegistry; import net.sourceforge.pmd.lang.apex.internal.ApexHandler; -import net.sourceforge.pmd.util.CollectionUtil; import apex.jorje.services.Version; diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/util/StringUtil.java b/pmd-core/src/main/java/net/sourceforge/pmd/util/StringUtil.java index 560229f6b1..fc4ecca0a6 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/util/StringUtil.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/util/StringUtil.java @@ -48,6 +48,10 @@ public final class StringUtil { return "'" + s + "'"; } + public static @NonNull String inDoubleQuotes(String expected) { + return "\"" + expected + "\""; + } + /** * Returns the (1-based) line number of the character at the given index. @@ -551,9 +555,6 @@ public final class StringUtil { return str.replaceAll("'", "''"); } - public static @NonNull String inDoubleQuotes(String expected) { - return "\"" + expected + "\""; - } /** Return the empty string if the parameter is null. */ public static String nullToEmpty(final String value) {