浏览代码

codacy: using varargs for methods or constructors which take an array the last parameter

AndyScherzinger 6 年之前
父节点
当前提交
77af543b48
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/owncloud/android/providers/FileContentProvider.java

+ 3 - 3
src/main/java/com/owncloud/android/providers/FileContentProvider.java

@@ -152,11 +152,11 @@ public class FileContentProvider extends ContentProvider {
             default:
                 throw new IllegalArgumentException("Unknown uri: " + uri.toString());
         }
-        
+
         return count;
     }
 
-    private int deleteDirectory(SQLiteDatabase db, Uri uri, String where, String[] whereArgs) {
+    private int deleteDirectory(SQLiteDatabase db, Uri uri, String where, String... whereArgs) {
         int count = 0;
 
         Cursor children = query(uri, null, null, null, null);
@@ -201,7 +201,7 @@ public class FileContentProvider extends ContentProvider {
         return count;
     }
 
-    private int deleteSingleFile(SQLiteDatabase db, Uri uri, String where, String[] whereArgs) {
+    private int deleteSingleFile(SQLiteDatabase db, Uri uri, String where, String... whereArgs) {
         int count = 0;
         Cursor c = query(db, uri, null, where, whereArgs, null);
         String remoteId = "";