refactored lastIndexOf
This commit is contained in:
parent
2391ff613c
commit
dadf0c295d
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ public class TransportStopRouteAdapter extends ArrayAdapter<TransportStopRoute>
|
||||||
|
|
||||||
private String getAdjustedRouteRef(String ref) {
|
private String getAdjustedRouteRef(String ref) {
|
||||||
if (ref != null) {
|
if (ref != null) {
|
||||||
int charPos=ref.lastIndexOf(':');
|
int charPos = ref.lastIndexOf(':');
|
||||||
if (charPos!=-1) {
|
if (charPos != -1) {
|
||||||
ref = ref.substring(0, charPos);
|
ref = ref.substring(0, charPos);
|
||||||
}
|
}
|
||||||
if (ref.length() > 4) {
|
if (ref.length() > 4) {
|
||||||
|
|
Loading…
Reference in a new issue