PMD: Enable and obey ImmutableField
This commit is contained in:
parent
c746a49b15
commit
68db3ae353
@ -7,7 +7,7 @@ import org.fdroid.fdroid.R;
|
||||
|
||||
public class MockFDroidResources extends MockResources {
|
||||
|
||||
private Context getStringDelegatingContext;
|
||||
private final Context getStringDelegatingContext;
|
||||
|
||||
public MockFDroidResources(Context getStringDelegatingContext) {
|
||||
this.getStringDelegatingContext = getStringDelegatingContext;
|
||||
|
@ -10,7 +10,7 @@ import java.util.List;
|
||||
|
||||
public class MockInstallablePackageManager extends MockPackageManager {
|
||||
|
||||
private List<PackageInfo> info = new ArrayList<>();
|
||||
private final List<PackageInfo> info = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public List<PackageInfo> getInstalledPackages(int flags) {
|
||||
|
@ -37,7 +37,7 @@ public final class QRCodeEncoder {
|
||||
private static final int WHITE = 0xFFFFFFFF;
|
||||
private static final int BLACK = 0xFF000000;
|
||||
|
||||
private int dimension = Integer.MIN_VALUE;
|
||||
private final int dimension;
|
||||
private String contents;
|
||||
private String displayContents;
|
||||
private String title;
|
||||
|
@ -76,7 +76,7 @@ public class PrivilegedInstaller extends Installer {
|
||||
private static final String PRIVILEGED_EXTENSION_SERVICE_INTENT = "org.fdroid.fdroid.privileged.IPrivilegedService";
|
||||
public static final String PRIVILEGED_EXTENSION_PACKAGE_NAME = "org.fdroid.fdroid.privileged";
|
||||
|
||||
private Activity mActivity;
|
||||
private final Activity mActivity;
|
||||
|
||||
private static final int REQUEST_CONFIRM_PERMS = 0;
|
||||
|
||||
|
@ -25,4 +25,5 @@
|
||||
<rule ref="rulesets/java/design.xml/NonCaseLabelInSwitchStatement"/>
|
||||
<rule ref="rulesets/java/design.xml/EqualsNull"/>
|
||||
<rule ref="rulesets/java/design.xml/IdempotentOperations"/>
|
||||
<rule ref="rulesets/java/design.xml/ImmutableField"/>
|
||||
</ruleset>
|
||||
|
Loading…
x
Reference in New Issue
Block a user