Replace string arguments with char

Optimize method calls by replacing single character String arguments
with char.

Closes gh-11680
This commit is contained in:
andrey.onufreyko
2018-01-18 23:33:56 +03:00
committed by Phillip Webb
parent 2735f57b0d
commit b19dcb13e2
19 changed files with 24 additions and 24 deletions

View File

@@ -251,7 +251,7 @@ class InitializrService {
int start = value.indexOf(FILENAME_HEADER_PREFIX);
if (start != -1) {
value = value.substring(start + FILENAME_HEADER_PREFIX.length());
int end = value.indexOf("\"");
int end = value.indexOf('\"');
if (end != -1) {
return value.substring(0, end);
}