From 7fdd404556459acbb80e4c8f7bcce38fd0f59bc9 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Thu, 5 Sep 2024 16:13:18 +0200 Subject: [PATCH] Fix some lint errors --- app/src/main/AndroidManifest.xml | 3 ++- .../be/ugent/zeus/hydra/common/utils/StringUtilsTest.java | 4 ++-- .../zeus/hydra/feed/cards/dismissal/DismissalDaoTest.java | 4 ---- .../ugent/zeus/hydra/feed/commands/MemoryDismissalDao.java | 4 ++-- .../java/be/ugent/zeus/hydra/testing/matcher/Fields.java | 5 ++--- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a43986fee..33fac14af 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -192,7 +192,8 @@ android:label="@string/wpi_cammie_title" android:parentActivityName=".wpi.cammie.CammieActivity" android:screenOrientation="fullSensor" - android:theme="@style/Zeus.Material.Cammie" /> + android:theme="@style/Zeus.Material.Cammie" + tools:ignore="DiscouragedApi" /> dismissals = new HashSet<>(); diff --git a/app/src/test/java/be/ugent/zeus/hydra/testing/matcher/Fields.java b/app/src/test/java/be/ugent/zeus/hydra/testing/matcher/Fields.java index 6ef648d0a..2a44d6254 100644 --- a/app/src/test/java/be/ugent/zeus/hydra/testing/matcher/Fields.java +++ b/app/src/test/java/be/ugent/zeus/hydra/testing/matcher/Fields.java @@ -23,7 +23,7 @@ package be.ugent.zeus.hydra.testing.matcher; import android.os.Build; -import androidx.annotation.RequiresApi; +import androidx.test.filters.SdkSuppress; import java.lang.reflect.Field; import java.lang.reflect.Modifier; @@ -37,13 +37,12 @@ * * @author Niko Strijbol */ -@RequiresApi(api = Build.VERSION_CODES.N) +@SdkSuppress(minSdkVersion = Build.VERSION_CODES.N) class Fields { private final Class clazz; private final Collection ignoredFields; - private List results; Fields(Class clazz) { this.clazz = clazz;