Fixed yellow in Android studio by adding annotations matching subclass.
This commit is contained in:
parent
4957bcb812
commit
63d3006ba8
@ -11,6 +11,7 @@ import android.content.UriMatcher;
|
|||||||
import android.database.sqlite.SQLiteDatabase;
|
import android.database.sqlite.SQLiteDatabase;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
import android.support.annotation.NonNull;
|
||||||
|
|
||||||
import org.fdroid.fdroid.Utils;
|
import org.fdroid.fdroid.Utils;
|
||||||
|
|
||||||
@ -53,8 +54,9 @@ public abstract class FDroidProvider extends ContentProvider {
|
|||||||
return this.isApplyingBatch;
|
return this.isApplyingBatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations)
|
public ContentProviderResult[] applyBatch(@NonNull ArrayList<ContentProviderOperation> operations)
|
||||||
throws OperationApplicationException {
|
throws OperationApplicationException {
|
||||||
ContentProviderResult[] result = null;
|
ContentProviderResult[] result = null;
|
||||||
isApplyingBatch = true;
|
isApplyingBatch = true;
|
||||||
@ -88,7 +90,7 @@ public abstract class FDroidProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getType(Uri uri) {
|
public String getType(@NonNull Uri uri) {
|
||||||
String type;
|
String type;
|
||||||
switch (getMatcher().match(uri)) {
|
switch (getMatcher().match(uri)) {
|
||||||
case CODE_LIST:
|
case CODE_LIST:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user