From 61b0e54c5033d86bdb3cf4d539c8a37fab6bb574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Sat, 12 Jan 2019 21:17:50 +0100 Subject: [PATCH] PMD warning --- .../sourceforge/pmd/util/fxdesigner/XPathPanelController.java | 2 +- .../fxdesigner/util/autocomplete/XPathAutocompleteProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/XPathPanelController.java b/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/XPathPanelController.java index e61b3435cc..d91551f0e7 100644 --- a/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/XPathPanelController.java +++ b/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/XPathPanelController.java @@ -35,8 +35,8 @@ import net.sourceforge.pmd.util.fxdesigner.model.XPathEvaluator; import net.sourceforge.pmd.util.fxdesigner.popups.ExportXPathWizardController; import net.sourceforge.pmd.util.fxdesigner.util.DesignerUtil; import net.sourceforge.pmd.util.fxdesigner.util.TextAwareNodeWrapper; -import net.sourceforge.pmd.util.fxdesigner.util.autocomplete.XPathAutocompleteProvider; import net.sourceforge.pmd.util.fxdesigner.util.autocomplete.CompletionResultSource; +import net.sourceforge.pmd.util.fxdesigner.util.autocomplete.XPathAutocompleteProvider; import net.sourceforge.pmd.util.fxdesigner.util.autocomplete.XPathCompletionSource; import net.sourceforge.pmd.util.fxdesigner.util.beans.SettingsOwner; import net.sourceforge.pmd.util.fxdesigner.util.beans.SettingsPersistenceUtil.PersistentProperty; diff --git a/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/util/autocomplete/XPathAutocompleteProvider.java b/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/util/autocomplete/XPathAutocompleteProvider.java index 71cd45912a..00b13aafd0 100644 --- a/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/util/autocomplete/XPathAutocompleteProvider.java +++ b/pmd-ui/src/main/java/net/sourceforge/pmd/util/fxdesigner/util/autocomplete/XPathAutocompleteProvider.java @@ -223,7 +223,7 @@ public final class XPathAutocompleteProvider { try { // Only since jdk 9 unfortunately return (Node) MethodUtils.invokeMethod(item, "getStyleableNode"); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { + } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ignored) { // then we're on jdk 8, in which case we do the work ourselves }