From 5676e0435b70b388d744c9e9b6dca5529fb49e18 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 27 Feb 2019 18:05:50 +0100 Subject: [PATCH] codacy: No need to call String.valueOf to append to a string. Signed-off-by: Andy Scherzinger --- .../owncloud/android/datamodel/ThumbnailsCacheManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 60bf09f161..45022b2891 100644 --- a/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -550,7 +550,7 @@ public final class ThumbnailsCacheManager { if (thumbnail == null) { // check if resized version is available - String resizedImageKey = PREFIX_RESIZED_IMAGE + String.valueOf(file.getRemoteId()); + String resizedImageKey = PREFIX_RESIZED_IMAGE + file.getRemoteId(); Bitmap resizedImage = getBitmapFromDiskCache(resizedImageKey); if (resizedImage != null) { @@ -1168,7 +1168,7 @@ public final class ThumbnailsCacheManager { Point p = getScreenDimension(); int pxW = p.x; int pxH = p.y; - String imageKey = PREFIX_RESIZED_IMAGE + String.valueOf(file.getRemoteId()); + String imageKey = PREFIX_RESIZED_IMAGE + file.getRemoteId(); Bitmap bitmap = BitmapUtils.decodeSampledBitmapFromFile(file.getStoragePath(), pxW, pxH); @@ -1186,7 +1186,7 @@ public final class ThumbnailsCacheManager { int pxW; int pxH; pxW = pxH = getThumbnailDimension(); - String imageKey = PREFIX_THUMBNAIL + String.valueOf(file.getRemoteId()); + String imageKey = PREFIX_THUMBNAIL + file.getRemoteId(); GetMethod getMethod = null;