fix PMD "Field has the same name as a method"

This commit is contained in:
Hans-Christoph Steiner 2020-01-02 20:28:35 +01:00
parent 3b67aa1a60
commit c7f3910472
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
3 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ public abstract class FDroidProvider extends ContentProvider {
static final int CODE_LIST = 1;
static final int CODE_SINGLE = 2;
private boolean isApplyingBatch;
private boolean applyingBatch;
protected abstract String getTableName();
@ -47,7 +47,7 @@ public abstract class FDroidProvider extends ContentProvider {
* Based on http://stackoverflow.com/a/15886915.
*/
protected final boolean isApplyingBatch() {
return this.isApplyingBatch;
return this.applyingBatch;
}
@NonNull
@ -55,7 +55,7 @@ public abstract class FDroidProvider extends ContentProvider {
public ContentProviderResult[] applyBatch(@NonNull ArrayList<ContentProviderOperation> operations)
throws OperationApplicationException {
ContentProviderResult[] result = null;
isApplyingBatch = true;
applyingBatch = true;
final SQLiteDatabase db = db();
db.beginTransaction();
try {
@ -63,7 +63,7 @@ public abstract class FDroidProvider extends ContentProvider {
db.setTransactionSuccessful();
} finally {
db.endTransaction();
isApplyingBatch = false;
applyingBatch = false;
}
return result;
}

View File

@ -21,7 +21,7 @@ public class AppListItemState {
private int progressMax = -1;
private boolean showInstallButton;
private boolean showCheckBox;
private boolean isCheckBoxChecked;
private boolean checkBoxChecked;
public AppListItemState(@NonNull App app) {
this.app = app;
@ -124,7 +124,7 @@ public class AppListItemState {
}
public boolean isCheckBoxChecked() {
return isCheckBoxChecked;
return checkBoxChecked;
}
/**
@ -133,7 +133,7 @@ public class AppListItemState {
*/
public AppListItemState setCheckBoxStatus(boolean checked) {
this.showCheckBox = true;
this.isCheckBoxChecked = checked;
this.checkBoxChecked = checked;
return this;
}

View File

@ -35,7 +35,7 @@ public class Issue763MultiRepo extends MultiIndexUpdaterTest {
}
@Test
public void antoxRepo() throws IndexUpdater.UpdateException {
public void testAntoxRepo() throws IndexUpdater.UpdateException {
assertAntoxEmpty();
setEnabled(microGRepo, true);
updateAntox();
@ -47,7 +47,7 @@ public class Issue763MultiRepo extends MultiIndexUpdaterTest {
}
@Test
public void microGRepo() throws IndexUpdater.UpdateException {
public void testMicroGRepo() throws IndexUpdater.UpdateException {
assertMicroGEmpty();
setEnabled(microGRepo, true);
updateMicroG();