Przeglądaj źródła

spotbugs. needless boxing of a boolean constant

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 5 lat temu
rodzic
commit
cd5406b7e0

+ 3 - 2
src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java

@@ -428,7 +428,7 @@ public final class ThumbnailsCacheManager {
         private FileDataStorageManager mStorageManager;
         private GetMethod getMethod;
         private Listener mListener;
-        private Boolean gridViewEnabled = false;
+        private boolean gridViewEnabled = false;
 
         public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager, Account account)
                 throws IllegalArgumentException {
@@ -449,7 +449,8 @@ public final class ThumbnailsCacheManager {
         }
 
         public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager,
-                                       Account account, List<ThumbnailGenerationTask> asyncTasks, Boolean gridViewEnabled)
+                                       Account account, List<ThumbnailGenerationTask> asyncTasks,
+                                       boolean gridViewEnabled)
             throws IllegalArgumentException {
             this(imageView, storageManager, account, asyncTasks);
             this.gridViewEnabled = gridViewEnabled;

+ 2 - 2
src/main/java/com/owncloud/android/ui/trashbin/RemoteTrashbinRepository.java

@@ -81,7 +81,7 @@ public class RemoteTrashbinRepository implements TrashbinRepository {
                 return result.isSuccess();
             } catch (ClientFactory.CreationException e) {
                 Log_OC.e(this, "Cannot create client", e);
-                return false;
+                return Boolean.FALSE;
             }
         }
 
@@ -160,7 +160,7 @@ public class RemoteTrashbinRepository implements TrashbinRepository {
                 return result.isSuccess();
             } catch (ClientFactory.CreationException e) {
                 Log_OC.e(this, "Cannot create client", e);
-                return false;
+                return Boolean.FALSE;
             }
         }