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

@@ -52,7 +52,7 @@ public class RestartClassLoaderTests {
private static final String PACKAGE = RestartClassLoaderTests.class.getPackage()
.getName();
private static final String PACKAGE_PATH = PACKAGE.replace(".", "/");
private static final String PACKAGE_PATH = PACKAGE.replace('.', '/');
private static final Charset UTF_8 = Charset.forName("UTF-8");

View File

@@ -37,7 +37,7 @@ public class DevToolsSettingsTests {
public TemporaryFolder temporaryFolder = new TemporaryFolder();
private static final String ROOT = DevToolsSettingsTests.class.getPackage().getName()
.replace(".", "/") + "/";
.replace('.', '/') + "/";
@Test
public void includePatterns() throws Exception {