Selaa lähdekoodia

Fix Static code analysis warnings

Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Alper Ozturk 1 vuosi sitten
vanhempi
commit
a3014ad1d3

+ 1 - 0
app/src/androidTest/java/com/owncloud/android/datamodel/OCFileIconTests.kt

@@ -101,4 +101,5 @@ class OCFileIconTests {
     fun destroy() {
         sut = null
     }
+
 }

+ 3 - 1
app/src/androidTest/java/com/owncloud/android/utils/DrawableUtilTests.kt

@@ -42,7 +42,8 @@ class DrawableUtilTests {
 
     @Test
     fun testAddDrawableAsOverlayWhenGivenValidDrawablesShouldContainTwoDrawable() {
-        val bitmap: Bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)
+        val bitmapSize = 10
+        val bitmap: Bitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888)
         val drawable = BitmapDrawable(context?.resources, bitmap)
 
         val layerDrawable = sut?.addDrawableAsOverlay(drawable, drawable)
@@ -59,4 +60,5 @@ class DrawableUtilTests {
         sut = null
         context = null
     }
+
 }

+ 1 - 0
app/src/main/java/com/owncloud/android/datamodel/OCFile.java

@@ -1021,4 +1021,5 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
     public void setTags(List<String> tags) {
         this.tags = tags;
     }
+
 }

+ 1 - 0
app/src/main/java/com/owncloud/android/utils/DrawableUtil.kt

@@ -43,4 +43,5 @@ class DrawableUtil {
         layerDrawable.setLayerInset(1, overlayBounds.left, overlayBounds.top, overlayBounds.right, overlayBounds.bottom)
         return layerDrawable
     }
+
 }

+ 1 - 0
app/src/test/java/com/nextcloud/android/utils/ExtensionsTest.kt

@@ -31,4 +31,5 @@ class ExtensionsTest {
         assertTrue(actualYearNewValue == "")
         assertFalse(actualYearNewValue == "2022")
     }
+
 }