Fix Static code analysis warnings

Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
Alper Ozturk 2023-10-05 15:18:59 +02:00 committed by alperozturk
parent c94a190388
commit a3014ad1d3
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF
5 changed files with 7 additions and 1 deletions

View file

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

View file

@ -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
}
}

View file

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

View file

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

View file

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