Use String indexOf(char) and lastIndexOf(char) where possible

Closes gh-11416
This commit is contained in:
Andy Wilkinson
2019-07-04 17:44:40 +01:00
parent 6a777a7f9b
commit 4b2a116fa7
7 changed files with 11 additions and 11 deletions

View File

@@ -50,7 +50,7 @@ class CityServiceImpl implements CityService {
}
String country = "";
int splitPos = name.lastIndexOf(",");
int splitPos = name.lastIndexOf(',');
if (splitPos >= 0) {
country = name.substring(splitPos + 1);