Replace string arguments with char
Optimize method calls by replacing single character String arguments with char. Closes gh-11680
This commit is contained in:
committed by
Phillip Webb
parent
2735f57b0d
commit
b19dcb13e2
@@ -48,7 +48,7 @@ class RemoteUrlPropertyExtractor
|
||||
ConfigurableEnvironment environment = event.getEnvironment();
|
||||
String url = cleanRemoteUrl(environment.getProperty(NON_OPTION_ARGS));
|
||||
Assert.state(StringUtils.hasLength(url), "No remote URL specified");
|
||||
Assert.state(url.indexOf(",") == -1, "Multiple URLs specified");
|
||||
Assert.state(url.indexOf(',') == -1, "Multiple URLs specified");
|
||||
try {
|
||||
new URI(url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user