Use String indexOf(char) and lastIndexOf(char) where possible
Closes gh-11416
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user