mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
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:
parent
c94a190388
commit
a3014ad1d3
5 changed files with 7 additions and 1 deletions
|
@ -101,4 +101,5 @@ class OCFileIconTests {
|
||||||
fun destroy() {
|
fun destroy() {
|
||||||
sut = null
|
sut = null
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ class DrawableUtilTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testAddDrawableAsOverlayWhenGivenValidDrawablesShouldContainTwoDrawable() {
|
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 drawable = BitmapDrawable(context?.resources, bitmap)
|
||||||
|
|
||||||
val layerDrawable = sut?.addDrawableAsOverlay(drawable, drawable)
|
val layerDrawable = sut?.addDrawableAsOverlay(drawable, drawable)
|
||||||
|
@ -59,4 +60,5 @@ class DrawableUtilTests {
|
||||||
sut = null
|
sut = null
|
||||||
context = null
|
context = null
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1021,4 +1021,5 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
|
||||||
public void setTags(List<String> tags) {
|
public void setTags(List<String> tags) {
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,4 +43,5 @@ class DrawableUtil {
|
||||||
layerDrawable.setLayerInset(1, overlayBounds.left, overlayBounds.top, overlayBounds.right, overlayBounds.bottom)
|
layerDrawable.setLayerInset(1, overlayBounds.left, overlayBounds.top, overlayBounds.right, overlayBounds.bottom)
|
||||||
return layerDrawable
|
return layerDrawable
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,4 +31,5 @@ class ExtensionsTest {
|
||||||
assertTrue(actualYearNewValue == "")
|
assertTrue(actualYearNewValue == "")
|
||||||
assertFalse(actualYearNewValue == "2022")
|
assertFalse(actualYearNewValue == "2022")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue