Use String.replace() with single char if possible

See gh-8089
This commit is contained in:
dreis
2017-01-24 19:39:17 +01:00
committed by Stephane Nicoll
parent 551bfb2c60
commit d58f38f6f6
19 changed files with 23 additions and 23 deletions

View File

@@ -262,7 +262,7 @@ public abstract class MainClassFinder {
}
private static String convertToClassName(String name, String prefix) {
name = name.replace("/", ".");
name = name.replace('/', '.');
name = name.replace('\\', '.');
name = name.substring(0, name.length() - DOT_CLASS.length());
if (prefix != null) {