PMD: Enable and obey UnnecessaryConstructor
This commit is contained in:
parent
857b0ea1c7
commit
f655f49aee
@ -91,10 +91,6 @@ public class SwapService extends Service {
|
|||||||
@NonNull
|
@NonNull
|
||||||
private final Set<String> appsToSwap = new HashSet<>();
|
private final Set<String> appsToSwap = new HashSet<>();
|
||||||
|
|
||||||
public SwapService() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Where relevant, the state of the swap process will be saved to disk using preferences.
|
* Where relevant, the state of the swap process will be saved to disk using preferences.
|
||||||
* Note that this is not always useful, for example saving the "current wifi network" is
|
* Note that this is not always useful, for example saving the "current wifi network" is
|
||||||
|
@ -17,4 +17,5 @@
|
|||||||
</rule>
|
</rule>
|
||||||
<rule ref="rulesets/java/optimizations.xml/PrematureDeclaration"/>
|
<rule ref="rulesets/java/optimizations.xml/PrematureDeclaration"/>
|
||||||
<rule ref="rulesets/java/optimizations.xml/AddEmptyString"/>
|
<rule ref="rulesets/java/optimizations.xml/AddEmptyString"/>
|
||||||
|
<rule ref="rulesets/java/controversial.xml/UnnecessaryConstructor"/>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user