Cleanup using IntelliJ's analyze code.

This commit is contained in:
Dennis Guse
2020-08-16 13:55:24 +02:00
parent ee062f8a38
commit 6a397922d2
10 changed files with 12 additions and 24 deletions
@@ -94,11 +94,10 @@ public class TestDataUtil {
* @return the Waypoint created.
*/
public static Waypoint createWaypointWithPhoto(Context context, long trackId, Location location) throws IOException {
String photoUrl = "";
File dstFile = new File(FileUtils.getImageUrl(context, trackId));
dstFile.createNewFile();
Uri photoUri = FileUtils.getUriForFile(context, dstFile);
photoUrl = photoUri.toString();
String photoUrl = photoUri.toString();
return new Waypoint("Waypoint name", "Waypoint description", "Waypoint category", "", trackId, 0.0, 0, location, photoUrl);
}