浏览代码

correct override

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 1 年之前
父节点
当前提交
b369caaec7

+ 1 - 1
app/src/main/java/com/nextcloud/client/database/migrations/LegacyMigration.kt

@@ -38,7 +38,7 @@ class LegacyMigration(
     private val from: Int,
     private val to: Int,
     private val clock: Clock,
-    private val context: Context,
+    private val context: Context
 ) : Migration(from, to) {
 
     override fun migrate(database: SupportSQLiteDatabase) {

+ 2 - 1
app/src/main/java/com/nextcloud/client/database/migrations/LegacyMigrationHelper.java

@@ -36,6 +36,7 @@ import com.owncloud.android.lib.common.utils.Log_OC;
 import java.util.Locale;
 
 import androidx.sqlite.db.SupportSQLiteDatabase;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 
 public class LegacyMigrationHelper {
 
@@ -68,7 +69,7 @@ public class LegacyMigrationHelper {
         }
     }
 
-    @SuppressWarnings("ResultOfMethodCallIgnored")
+    @SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTICE")
     private void clearStorage() {
         context.getCacheDir().delete();
         ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).clearApplicationUserData();