Remove unnecessary use of String.valueOf() from GPSExtractor (#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.
This commit is contained in:
Dan Garry 2019-05-19 14:32:08 +02:00 committed by Josephine Lim
parent b176515153
commit 200f038f2c

View file

@ -122,7 +122,7 @@ class GPSExtractor {
decLongitude = 0 - convertToDegree(longitude);
}
String decimalCoords = String.valueOf(decLatitude) + "|" + String.valueOf(decLongitude);
String decimalCoords = decLatitude + "|" + decLongitude;
Timber.d("Latitude and Longitude are %s", decimalCoords);
return decimalCoords;
}