PMD: Enable most empty code rules
This commit is contained in:
parent
65e2931fe8
commit
c432bf1ea0
@ -96,10 +96,12 @@ public class SwapAppsView extends ListView implements
|
||||
super.onFinishInflate();
|
||||
repo = getActivity().getState().getPeerRepo();
|
||||
|
||||
/*
|
||||
if (repo == null) {
|
||||
// TODO: Uh oh, something stuffed up for this to happen.
|
||||
// TODO: What is the best course of action from here?
|
||||
TODO: Uh oh, something stuffed up for this to happen.
|
||||
TODO: What is the best course of action from here?
|
||||
}
|
||||
*/
|
||||
|
||||
adapter = new AppListAdapter(getContext(), getContext().getContentResolver().query(
|
||||
AppProvider.getRepoUri(repo), AppProvider.DataColumns.ALL, null, null, null));
|
||||
|
@ -17,6 +17,10 @@
|
||||
<rule ref="rulesets/java/unnecessary.xml">
|
||||
<exclude name="UselessParentheses"/> <!--Too nitpicky-->
|
||||
</rule>
|
||||
<rule ref="rulesets/java/empty.xml">
|
||||
<exclude name="EmptyCatchBlock"/> <!--Ignoring an exception-->
|
||||
<exclude name="EmptyWhileStmt"/> <!--Can be useful sometimes-->
|
||||
</rule>
|
||||
<rule ref="rulesets/java/optimizations.xml/PrematureDeclaration"/>
|
||||
<rule ref="rulesets/java/optimizations.xml/AddEmptyString"/>
|
||||
<rule ref="rulesets/java/optimizations.xml/UseArraysAsList"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user