PMD: Enable and obey UnnecessaryConstructor

This commit is contained in:
Daniel Martí 2016-04-23 16:17:55 +01:00
parent 857b0ea1c7
commit f655f49aee
2 changed files with 1 additions and 4 deletions
app/src/main/java/org/fdroid/fdroid/localrepo
config/pmd

@ -91,10 +91,6 @@ public class SwapService extends Service {
@NonNull
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.
* Note that this is not always useful, for example saving the "current wifi network" is

@ -17,4 +17,5 @@
</rule>
<rule ref="rulesets/java/optimizations.xml/PrematureDeclaration"/>
<rule ref="rulesets/java/optimizations.xml/AddEmptyString"/>
<rule ref="rulesets/java/controversial.xml/UnnecessaryConstructor"/>
</ruleset>