mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
codacy: using varargs for methods or constructors which take an array the last parameter
This commit is contained in:
parent
ec6b1aa37d
commit
77af543b48
1 changed files with 3 additions and 3 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in a new issue