From c432bf1ea0b6e554248ad7038a604d7a3d4744c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 12 May 2016 10:50:12 +0100 Subject: [PATCH] PMD: Enable most empty code rules --- .../java/org/fdroid/fdroid/views/swap/SwapAppsView.java | 6 ++++-- config/pmd/rules.xml | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java b/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java index d7b42505d..dd360fcb7 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java +++ b/app/src/main/java/org/fdroid/fdroid/views/swap/SwapAppsView.java @@ -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)); diff --git a/config/pmd/rules.xml b/config/pmd/rules.xml index 1ca6078d2..3e4600f4e 100644 --- a/config/pmd/rules.xml +++ b/config/pmd/rules.xml @@ -17,6 +17,10 @@ + + + +