PMD Results

The following document contains the results of PMD 4.1.

Files

org/springframework/binding/form/support/DefaultFormModel.java

Violation Line
Avoid unused imports such as 'org.springframework.rules.support.DefaultRulesSource' 40

org/springframework/binding/form/support/MessageSourceFieldFaceSource.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.ApplicationServices' 28

org/springframework/binding/value/swing/FormattedTextFieldAdapter.java

Violation Line
Avoid empty catch blocks 112 - 114

org/springframework/richclient/application/ApplicationLauncher.java

Violation Line
Avoid unused imports such as 'org.springframework.beans.factory.BeanNotOfRequiredTypeException' 25

org/springframework/richclient/application/WindowManager.java

Violation Line
Avoid unused imports such as 'java.awt.Window' 18

org/springframework/richclient/application/config/DefaultApplicationObjectConfigurer.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.ServiceNotFoundException' 30

org/springframework/richclient/application/setup/SetupLicenseWizardPage.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.wizard.WizardPage' 32

org/springframework/richclient/application/statusbar/support/DefaultStatusBar.java

Violation Line
Avoid unused imports such as 'java.awt.Component' 20

org/springframework/richclient/application/statusbar/support/StatusBarProgressMonitor.java

Violation Line
These nested if statements could be combined 227 - 229

org/springframework/richclient/application/support/AbstractApplicationWindow.java

Violation Line
Avoid empty if statements 159 - 161
Avoid empty if statements 169 - 171
Avoid empty if statements 201 - 203

org/springframework/richclient/application/support/BeanFactoryPageDescriptorRegistry.java

Violation Line
Avoid unused imports such as 'org.springframework.beans.factory.BeanNotOfRequiredTypeException' 20

org/springframework/richclient/application/support/BeanFactoryViewDescriptorRegistry.java

Violation Line
Avoid unused imports such as 'org.springframework.beans.factory.BeanNotOfRequiredTypeException' 20

org/springframework/richclient/application/support/DefaultApplicationPage.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.ApplicationPage' 23

org/springframework/richclient/application/support/DefaultViewDescriptor.java

Violation Line
Avoid unused imports such as 'org.springframework.context.ApplicationListener' 26
Avoid unused imports such as 'org.springframework.context.event.ApplicationEventMulticaster' 27
Avoid unused imports such as 'org.springframework.context.support.AbstractApplicationContext' 28

org/springframework/richclient/application/support/MultiViewPageDescriptor.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.PageComponent' 22
Avoid unused imports such as 'org.springframework.richclient.application.PageDescriptor' 23

org/springframework/richclient/command/AbstractCommand.java

Violation Line
Avoid unused imports such as 'javax.swing.JComponent' 28

org/springframework/richclient/command/ActionCommand.java

Violation Line
These nested if statements could be combined 115 - 117

org/springframework/richclient/command/CommandGroup.java

Violation Line
Overriding method merely calls super 223 - 225

org/springframework/richclient/command/CommandGroupFactoryBean.java

Violation Line
These nested if statements could be combined 453 - 455

org/springframework/richclient/command/ComponentGroupMember.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 8
These nested if statements could be combined 70 - 72

org/springframework/richclient/command/config/CommandButtonLabelInfo.java

Violation Line
Avoid unused local variables such as 'textCharsIndex'. 90

org/springframework/richclient/command/config/ToolBarCommandButtonConfigurer.java

Violation Line
These nested if statements could be combined 97 - 99

org/springframework/richclient/command/support/ShowPageMenu.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.ApplicationServices' 18

org/springframework/richclient/command/support/ShowViewCommand.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.View' 21

org/springframework/richclient/command/support/ShowViewMenu.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.ApplicationServices' 18

org/springframework/richclient/control/ExceptionDetailsPane.java

Violation Line
Avoid empty catch blocks 47 - 48

org/springframework/richclient/control/MessageReportingOverlay.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.ApplicationServices' 20
Avoid unused imports such as 'org.springframework.richclient.util.OverlayHelper' 28

org/springframework/richclient/core/SecurityControllable.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.security.SecurityController' 18

org/springframework/richclient/dialog/AlertMessageAreaPane.java

Violation Line
Avoid empty catch blocks 83 - 84

org/springframework/richclient/dialog/ApplicationDialog.java

Violation Line
Avoid unused imports such as 'javax.swing.JLayeredPane' 37

org/springframework/richclient/dialog/support/DialogPageUtils.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.dialog.TitledPageApplicationDialog' 33

org/springframework/richclient/form/Form.java

Violation Line
Avoid unused imports such as 'org.springframework.binding.form.FormModel' 21

org/springframework/richclient/form/binding/swing/AbstractListBinder.java

Violation Line
Avoid unused imports such as 'java.util.Observable' 20
Avoid unused imports such as 'javax.swing.ListModel' 23

org/springframework/richclient/form/binding/swing/ListBinder.java

Violation Line
Avoid empty if statements 85 - 86

org/springframework/richclient/form/builder/GridBagLayoutFormBuilder.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.form.FormModelHelper' 23

org/springframework/richclient/form/builder/support/CheckBoxFormComponentInterceptor.java

Violation Line
These nested if statements could be combined 55 - 59

org/springframework/richclient/form/builder/support/DirtyIndicatorInterceptor.java

Violation Line
Avoid unused imports such as 'java.awt.event.ComponentAdapter' 22
Avoid unused imports such as 'java.awt.event.ComponentEvent' 23
Avoid unused imports such as 'java.awt.event.HierarchyEvent' 24
Avoid unused imports such as 'java.awt.event.HierarchyListener' 25

org/springframework/richclient/form/builder/support/OverlayValidationInterceptorFactory.java

Violation Line
Avoid unused imports such as 'javax.swing.JTextField' 22
Avoid unused imports such as 'org.springframework.richclient.core.Severity' 27
Avoid unused imports such as 'org.springframework.richclient.util.OverlayHelper' 30

org/springframework/richclient/image/Handler.java

Violation Line
Avoid unused imports such as 'java.net.URLStreamHandlerFactory' 23

org/springframework/richclient/layout/GridBagLayoutBuilder.java

Violation Line
Avoid unused method parameters such as 'currentRowIndex'. 667 - 690

org/springframework/richclient/layout/TableLayoutBuilder.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.application.Application' 34

org/springframework/richclient/security/support/AbstractSecurityController.java

Violation Line
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 221
Avoid empty catch blocks 248 - 250

org/springframework/richclient/table/ShuttleSortableTableModel.java

Violation Line
Avoid unused private fields such as 'compares'. 58

org/springframework/richclient/table/TableUpdater.java

Violation Line
Avoid empty catch blocks 129 - 130
Avoid empty catch blocks 139 - 140

org/springframework/richclient/table/TableUtils.java

Violation Line
These nested if statements could be combined 153 - 155
These nested if statements could be combined 191 - 193

org/springframework/richclient/text/HtmlPane.java

Violation Line
Avoid empty catch blocks 142 - 143

org/springframework/richclient/tree/BeanTreeCellRenderer.java

Violation Line
Avoid empty catch blocks 87 - 89

org/springframework/richclient/util/SwingWorker.java

Violation Line
Avoid empty catch blocks 129 - 130

org/springframework/richclient/wizard/AbstractWizard.java

Violation Line
Avoid unused imports such as 'org.springframework.richclient.image.ImageSource' 26

org/springframework/rules/constraint/MethodInvokingConstraint.java

Violation Line
Avoid unused method parameters such as 'object'. 62 - 76

org/springframework/rules/constraint/RegexpConstraint.java

Violation Line
Avoid unused imports such as 'org.springframework.rules.reporting.TypeResolvable' 22

org/springframework/rules/constraint/property/ConditionalPropertyConstraint.java

Violation Line
Avoid unused imports such as 'org.springframework.rules.constraint.IfTrue' 4

org/springframework/rules/constraint/property/PropertyPresent.java

Violation Line
Avoid unused imports such as 'org.springframework.core.closure.Constraint' 19

org/springframework/rules/reporting/BeanValidationResultsCollector.java

Violation Line
Overriding method merely calls super 116 - 118

org/springframework/rules/reporting/DefaultMessageTranslator.java

Violation Line
Avoid unused method parameters such as 'rejectedValue'. 118 - 137