PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

org/vaadin/jonatan/contexthelp/ContextHelp.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 250252

org/vaadin/jonatan/contexthelp/HelpProvider.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getHtmlForId': the method is declared in an interface type 15
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPlacementForId': the method is declared in an interface type 26

org/vaadin/jonatan/contexthelp/widgetset/client/ui/VContextHelp.java

Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'isKeyDownOrClick(NativePreviewEvent)'. 198
CollapsibleIfStatements These nested if statements could be combined 356358

Priority 4

org/vaadin/jonatan/contexthelp/ContextHelp.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.vaadin.event.ShortcutAction' 3

org/vaadin/jonatan/contexthelp/widgetset/client/ui/ContextHelpConnector.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.vaadin.event.ShortcutAction' 9

org/vaadin/jonatan/contexthelp/widgetset/client/ui/ContextHelpState.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.vaadin.shared.annotations.DelegateToWidget' 5

org/vaadin/jonatan/contexthelp/widgetset/client/ui/VContextHelp.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.google.gwt.core.client.Scheduler' 3
UnusedImports Avoid unused imports such as 'com.google.gwt.dom.client.Style.Unit' 10
UnusedImports Avoid unused imports such as 'com.vaadin.client.Util' 23
UselessParentheses Useless parentheses. 190191

Files

org/vaadin/jonatan/contexthelp/ContextHelp.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.vaadin.event.ShortcutAction' 4 3
UselessOverridingMethod Overriding method merely calls super 3 250252

org/vaadin/jonatan/contexthelp/HelpProvider.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getHtmlForId': the method is declared in an interface type 3 15
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPlacementForId': the method is declared in an interface type 3 26

org/vaadin/jonatan/contexthelp/widgetset/client/ui/ContextHelpConnector.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.vaadin.event.ShortcutAction' 4 9

org/vaadin/jonatan/contexthelp/widgetset/client/ui/ContextHelpState.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.vaadin.shared.annotations.DelegateToWidget' 4 5

org/vaadin/jonatan/contexthelp/widgetset/client/ui/VContextHelp.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.google.gwt.core.client.Scheduler' 4 3
UnusedImports Avoid unused imports such as 'com.google.gwt.dom.client.Style.Unit' 4 10
UnusedImports Avoid unused imports such as 'com.vaadin.client.Util' 4 23
UselessParentheses Useless parentheses. 4 190191
UnusedPrivateMethod Avoid unused private methods such as 'isKeyDownOrClick(NativePreviewEvent)'. 3 198
CollapsibleIfStatements These nested if statements could be combined 3 356358