Checkstyle Results

The following document contains the results of Checkstyle 10.20.1 with sun_checks.xml ruleset.

Summary

Files  Info  Warnings  Errors
7 0 0 56

Files

File  I  W  E
com/github/rhwood/jsplitbutton/JSplitButton.java 0 0 43
com/github/rhwood/jsplitbutton/SplitButtonDemo.java 0 0 9
com/github/rhwood/jsplitbutton/action/ButtonClickedActionListener.java 0 0 2
com/github/rhwood/jsplitbutton/action/SplitButtonClickedActionListener.java 0 0 2

Rules

Category Rule Violations Severity
coding HiddenField 9  Error
MagicNumber 7  Error
design DesignForExtension 2  Error
VisibilityModifier 2  Error
imports AvoidStarImport 3  Error
UnusedImports
  • processJavadoc: "false"
2  Error
javadoc JavadocMethod 1  Error
JavadocVariable 3  Error
misc FinalParameters 2  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
1  Error
sizes LineLength
  • fileExtensions: "java"
24  Error

Details

com/github/rhwood/jsplitbutton/JSplitButton.java

Severity Category Rule Message Line
 Error imports AvoidStarImport Using the '.*' form of import should be avoided - java.awt.*. 20
 Error coding MagicNumber '4' is a magic number. 54
 Error coding MagicNumber '22' is a magic number. 58
 Error coding MagicNumber '8' is a magic number. 62
 Error javadoc JavadocVariable Missing a Javadoc comment. 88
 Error javadoc JavadocVariable Missing a Javadoc comment. 89
 Error javadoc JavadocVariable Missing a Javadoc comment. 90
 Error coding HiddenField 'popupMenu' hides a field. 146
 Error coding HiddenField 'separatorSpacing' hides a field. 169
 Error coding HiddenField 'alwaysPopup' hides a field. 188
 Error coding HiddenField 'arrowColor' hides a field. 206
 Error coding HiddenField 'disabledArrowColor' hides a field. 226
 Error coding HiddenField 'splitWidth' hides a field. 245
 Error coding HiddenField 'arrowSize' hides a field. 263
 Error coding HiddenField 'image' hides a field. 290
 Error sizes LineLength Line is longer than 80 characters (found 83). 304
 Error javadoc JavadocMethod Expected @param tag for 'size'. 315
 Error sizes LineLength Line is longer than 80 characters (found 86). 317
 Error sizes LineLength Line is longer than 80 characters (found 82). 323
 Error coding MagicNumber '3' is a magic number. 323
 Error coding MagicNumber '90' is a magic number. 326
 Error sizes LineLength Line is longer than 80 characters (found 109). 327
 Error coding MagicNumber '0x8F1C1C' is a magic number. 335
 Error coding HiddenField 'image' hides a field. 348
 Error design DesignForExtension Class 'JSplitButton' looks like designed for extension (can be subclassed), but the method 'getPreferredSize' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'JSplitButton' final or making the method 'getPreferredSize' static/final/abstract/empty, or adding allowed annotation for the method. 352
 Error design DesignForExtension Class 'JSplitButton' looks like designed for extension (can be subclassed), but the method 'paintComponent' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'JSplitButton' final or making the method 'paintComponent' static/final/abstract/empty, or adding allowed annotation for the method. 361
 Error sizes LineLength Line is longer than 80 characters (found 92). 365
 Error sizes LineLength Line is longer than 80 characters (found 119). 369
 Error sizes LineLength Line is longer than 80 characters (found 89). 371
 Error sizes LineLength Line is longer than 80 characters (found 87). 372
 Error sizes LineLength Line is longer than 80 characters (found 85). 373
 Error sizes LineLength Line is longer than 80 characters (found 87). 374
 Error sizes LineLength Line is longer than 80 characters (found 85). 403
 Error sizes LineLength Line is longer than 80 characters (found 88). 412
 Error sizes LineLength Line is longer than 80 characters (found 95). 422
 Error sizes LineLength Line is longer than 80 characters (found 98). 431
 Error sizes LineLength Line is longer than 80 characters (found 82). 447
 Error sizes LineLength Line is longer than 80 characters (found 123). 454
 Error sizes LineLength Line is longer than 80 characters (found 123). 457
 Error sizes LineLength Line is longer than 80 characters (found 102). 474
 Error sizes LineLength Line is longer than 80 characters (found 107). 487
 Error sizes LineLength Line is longer than 80 characters (found 102). 502
 Error misc FinalParameters Parameter singleEventListeners should be final. 502

com/github/rhwood/jsplitbutton/SplitButtonDemo.java

Severity Category Rule Message Line
 Error imports AvoidStarImport Using the '.*' form of import should be avoided - java.awt.*. 18
 Error imports AvoidStarImport Using the '.*' form of import should be avoided - javax.swing.*. 21
 Error design VisibilityModifier Variable 'horizontalCount' must be private and have accessor methods. 33
 Error design VisibilityModifier Variable 'verticalCount' must be private and have accessor methods. 37
 Error coding MagicNumber '4' is a magic number. 45
 Error regexp RegexpSingleline Line has trailing spaces. 55
 Error misc FinalParameters Parameter args should be final. 59
 Error sizes LineLength Line is longer than 80 characters (found 149). 72
 Error sizes LineLength Line is longer than 80 characters (found 149). 100

com/github/rhwood/jsplitbutton/action/ButtonClickedActionListener.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - com.github.rhwood.jsplitbutton.JSplitButton. 18
 Error sizes LineLength Line is longer than 80 characters (found 83). 26

com/github/rhwood/jsplitbutton/action/SplitButtonClickedActionListener.java

Severity Category Rule Message Line
 Error imports UnusedImports Unused import - com.github.rhwood.jsplitbutton.JSplitButton. 18
 Error sizes LineLength Line is longer than 80 characters (found 93). 26