Skip to content

Commit 200f038

Browse files
Deskanamisaochan
authored andcommitted
Remove unnecessary use of String.valueOf() from GPSExtractor (commons-app#2958)
valueOf() was being used in cases where it wasn't necessary because the method is called implicitly; this patch removes these usages to make the code clearer and easier to read.
1 parent b176515 commit 200f038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/upload/GPSExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private String getDecimalCoords(String latitude, String latitude_ref, String lon
122122
decLongitude = 0 - convertToDegree(longitude);
123123
}
124124

125-
String decimalCoords = String.valueOf(decLatitude) + "|" + String.valueOf(decLongitude);
125+
String decimalCoords = decLatitude + "|" + decLongitude;
126126
Timber.d("Latitude and Longitude are %s", decimalCoords);
127127
return decimalCoords;
128128
}

0 commit comments

Comments
 (0)