Checkstyle Results

The following document contains the results of Checkstyle 10.14.0 with struts_checks.xml ruleset.

Summary

Files  Info  Warnings  Errors
31 0 0 245

Files

File  I  W  E
examples/MessageResources.properties 0 0 2
examples/MessageResources_de.properties 0 0 2
examples/MessageResources_en_CA.properties 0 0 2
examples/MessageResources_en_GB.properties 0 0 2
examples/MessageResources_en_US.properties 0 0 2
examples/MessageResources_es.properties 0 0 2
examples/MessageResources_fr.properties 0 0 2
examples/MessageResources_it.properties 0 0 2
examples/MessageResources_pt.properties 0 0 2
examples/SuccessAction.java 0 0 7
examples/TestBean.java 0 0 23
examples/bean/ExampleBean.java 0 0 33
examples/bean/NestedBean.java 0 0 4
examples/bean/PrepareBeanAction.java 0 0 6
examples/dyna/ProcessDynaAction.java 0 0 8
examples/links/PrepareLinksAction.java 0 0 6
examples/links/ProcessLinksAction.java 0 0 8
examples/localization/ProcessLocalizationAction.java 0 0 8
examples/logic/PrepareLogicAction.java 0 0 8
examples/multibox/MultiboxActionForm.java 0 0 12
examples/multibox/PrepareMultiboxAction.java 0 0 6
examples/multibox/ProcessMultiboxAction.java 0 0 7
examples/options/BookBean.java 0 0 7
examples/options/PrepareOptionsAction.java 0 0 9
examples/options/ProcessOptionsAction.java 0 0 8
examples/simple/ProcessSimpleAction.java 0 0 8
examples/simple/SimpleActionForm.java 0 0 20
examples/token/PrepareTokenAction.java 0 0 7
examples/token/ProcessTokenAction.java 0 0 7
examples/validator/CustomValidator.java 0 0 18
examples/validator/ProcessValidatorAction.java 0 0 7

Rules

Category Rule Violations Severity
coding MagicNumber 14  Error
design HideUtilityClassConstructor 1  Error
header RegexpHeader
  • header
    1: /
    2: *
    3: s*
    4: 
    5: *
    6: s*
    7: $Id.*
    8: $
    9: 
    10: *
    11: s*
    12: 
    13: *
    14: s*Copyright
    15: d{4}(-
    16: d{4}|,
    17: d{4})* The Apache Software Fou
    18: datio
    19: .
    20: 
    21: *
    22: s*
    23: 
    24: *
    25: s*Lice
    26: sed u
    27: der the Apache Lice
    28: se, Versio
    29:  2
    30: .0
    31: (the .Lice
    32: se.
    33: );
    34: 
    35: *
    36: s*you may
    37: ot use this file except i
    38:  complia
    39: ce with the Lice
    40: se
    41: .
    42: 
    43: *
    44: s*You may obtai
    45:  a copy of the Lice
    46: se at
    47: 
    48: *
    49: s*
    50: 
    51: *
    52: s*http://www
    53: .apache
    54: .org/lice
    55: ses/LICENSE
    56: -2
    57: .0
    58: 
    59: *
    60: s*
    61: 
    62: *
    63: s*U
    64: less required by applicable law or agreed to i
    65:  writi
    66: g, software
    67: 
    68: *
    69: s*distributed u
    70: der the Lice
    71: se is distributed o
    72:  a
    73:  .AS IS. BASIS,
    74: 
    75: *
    76: s*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
    77: .
    78: 
    79: *
    80: s*See the Lice
    81: se for the specific la
    82: guage gover
    83: i
    84: g permissio
    85: s a
    86: d
    87: 
    88: *
    89: s*limitatio
    90: s u
    91: der the Lice
    92: se
    93: .
    94: 
    95: */
    96: s*
31  Error
javadoc JavadocMethod
  • validateThrows: "true"
7  Error
JavadocPackage
  • allowLegacy: "true"
11  Error
JavadocStyle 50  Error
misc FinalParameters 106  Error
NewlineAtEndOfFile 25  Error

Details

examples/MessageResources.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

examples/MessageResources_de.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

examples/MessageResources_en_CA.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Missing a header - not enough lines in file. 1

examples/MessageResources_en_GB.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Missing a header - not enough lines in file. 1

examples/MessageResources_en_US.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Missing a header - not enough lines in file. 1

examples/MessageResources_es.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

examples/MessageResources_fr.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

examples/MessageResources_it.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

examples/MessageResources_pt.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of '/\*\s*'. 1

examples/SuccessAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 91
 Error misc FinalParameters Parameter form should be final. 92
 Error misc FinalParameters Parameter request should be final. 93
 Error misc FinalParameters Parameter response should be final. 94

examples/TestBean.java

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 27
 Error javadoc JavadocStyle First sentence should end with a period. 37
 Error javadoc JavadocStyle First sentence should end with a period. 40
 Error coding MagicNumber '45213.451' is a magic number. 41
 Error javadoc JavadocStyle First sentence should end with a period. 43
 Error coding MagicNumber '-123.582F' is a magic number. 44
 Error javadoc JavadocStyle First sentence should end with a period. 46
 Error coding MagicNumber '256' is a magic number. 47
 Error javadoc JavadocStyle First sentence should end with a period. 49
 Error coding MagicNumber '1321546L' is a magic number. 50
 Error javadoc JavadocStyle First sentence should end with a period. 52
 Error coding MagicNumber '257' is a magic number. 53
 Error javadoc JavadocStyle First sentence should end with a period. 55
 Error javadoc JavadocStyle First sentence should end with a period. 58
 Error misc FinalParameters Parameter booleanValue should be final. 132
 Error misc FinalParameters Parameter doubleValue should be final. 140
 Error misc FinalParameters Parameter floatValue should be final. 148
 Error misc FinalParameters Parameter intValue should be final. 156
 Error misc FinalParameters Parameter longValue should be final. 164
 Error misc FinalParameters Parameter shortValue should be final. 172
 Error misc FinalParameters Parameter stringValue should be final. 180
 Error misc FinalParameters Parameter date should be final. 196

examples/bean/ExampleBean.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 28
 Error javadoc JavadocStyle First sentence should end with a period. 38
 Error javadoc JavadocStyle First sentence should end with a period. 41
 Error coding MagicNumber '45213.451' is a magic number. 42
 Error javadoc JavadocStyle First sentence should end with a period. 44
 Error coding MagicNumber '-123.582F' is a magic number. 45
 Error javadoc JavadocStyle First sentence should end with a period. 47
 Error coding MagicNumber '256' is a magic number. 48
 Error javadoc JavadocStyle First sentence should end with a period. 50
 Error coding MagicNumber '1321546L' is a magic number. 51
 Error javadoc JavadocStyle First sentence should end with a period. 53
 Error coding MagicNumber '257' is a magic number. 54
 Error javadoc JavadocStyle First sentence should end with a period. 56
 Error javadoc JavadocStyle First sentence should end with a period. 59
 Error javadoc JavadocStyle First sentence should end with a period. 62
 Error javadoc JavadocStyle First sentence should end with a period. 65
 Error javadoc JavadocStyle First sentence should end with a period. 68
 Error javadoc JavadocStyle First sentence should end with a period. 71
 Error misc FinalParameters Parameter booleanValue should be final. 148
 Error misc FinalParameters Parameter doubleValue should be final. 156
 Error misc FinalParameters Parameter floatValue should be final. 164
 Error misc FinalParameters Parameter intValue should be final. 172
 Error misc FinalParameters Parameter longValue should be final. 180
 Error misc FinalParameters Parameter shortValue should be final. 188
 Error misc FinalParameters Parameter stringValue should be final. 196
 Error misc FinalParameters Parameter list should be final. 212
 Error misc FinalParameters Parameter nested should be final. 228
 Error misc FinalParameters Parameter date should be final. 244
 Error misc FinalParameters Parameter array should be final. 260
 Error misc FinalParameters Parameter html should be final. 276

examples/bean/NestedBean.java

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 27
 Error javadoc JavadocStyle First sentence should end with a period. 37
 Error misc FinalParameters Parameter stringValue should be final. 64

examples/bean/PrepareBeanAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 67
 Error misc FinalParameters Parameter form should be final. 68
 Error misc FinalParameters Parameter request should be final. 69
 Error misc FinalParameters Parameter response should be final. 70

examples/dyna/ProcessDynaAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 32
 Error misc FinalParameters Parameter mapping should be final. 66
 Error misc FinalParameters Parameter form should be final. 67
 Error misc FinalParameters Parameter request should be final. 68
 Error misc FinalParameters Parameter response should be final. 69

examples/links/PrepareLinksAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 71
 Error misc FinalParameters Parameter form should be final. 72
 Error misc FinalParameters Parameter request should be final. 73
 Error misc FinalParameters Parameter response should be final. 74

examples/links/ProcessLinksAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 32
 Error misc FinalParameters Parameter mapping should be final. 66
 Error misc FinalParameters Parameter form should be final. 67
 Error misc FinalParameters Parameter request should be final. 68
 Error misc FinalParameters Parameter response should be final. 69

examples/localization/ProcessLocalizationAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 36
 Error misc FinalParameters Parameter mapping should be final. 70
 Error misc FinalParameters Parameter form should be final. 71
 Error misc FinalParameters Parameter request should be final. 72
 Error misc FinalParameters Parameter response should be final. 73

examples/logic/PrepareLogicAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 75
 Error misc FinalParameters Parameter form should be final. 76
 Error misc FinalParameters Parameter request should be final. 77
 Error misc FinalParameters Parameter response should be final. 78
 Error coding MagicNumber '7' is a magic number. 87

examples/multibox/MultiboxActionForm.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 30
 Error javadoc JavadocStyle First sentence should end with a period. 40
 Error javadoc JavadocStyle First sentence should end with a period. 43
 Error javadoc JavadocStyle First sentence should end with a period. 57
 Error misc FinalParameters Parameter mapping should be final. 63
 Error misc FinalParameters Parameter request should be final. 63
 Error misc FinalParameters Parameter mapping should be final. 89
 Error misc FinalParameters Parameter request should be final. 90
 Error misc FinalParameters Parameter colors should be final. 123
 Error misc FinalParameters Parameter fruits should be final. 131

examples/multibox/PrepareMultiboxAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 67
 Error misc FinalParameters Parameter form should be final. 68
 Error misc FinalParameters Parameter request should be final. 69
 Error misc FinalParameters Parameter response should be final. 70

examples/multibox/ProcessMultiboxAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 32
 Error misc FinalParameters Parameter mapping should be final. 66
 Error misc FinalParameters Parameter form should be final. 67
 Error misc FinalParameters Parameter request should be final. 68
 Error misc FinalParameters Parameter response should be final. 69

examples/options/BookBean.java

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 24
 Error javadoc JavadocStyle First sentence should end with a period. 33
 Error javadoc JavadocStyle First sentence should end with a period. 38
 Error misc FinalParameters Parameter isbn should be final. 50
 Error misc FinalParameters Parameter title should be final. 50
 Error javadoc JavadocStyle First sentence should end with a period. 65

examples/options/PrepareOptionsAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 71
 Error misc FinalParameters Parameter form should be final. 72
 Error misc FinalParameters Parameter request should be final. 73
 Error misc FinalParameters Parameter response should be final. 74
 Error coding MagicNumber '3' is a magic number. 156
 Error coding MagicNumber '4' is a magic number. 157
 Error coding MagicNumber '5' is a magic number. 158

examples/options/ProcessOptionsAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 32
 Error misc FinalParameters Parameter mapping should be final. 66
 Error misc FinalParameters Parameter form should be final. 67
 Error misc FinalParameters Parameter request should be final. 68
 Error misc FinalParameters Parameter response should be final. 69

examples/simple/ProcessSimpleAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 32
 Error misc FinalParameters Parameter mapping should be final. 66
 Error misc FinalParameters Parameter form should be final. 67
 Error misc FinalParameters Parameter request should be final. 68
 Error misc FinalParameters Parameter response should be final. 69

examples/simple/SimpleActionForm.java

Severity Category Rule Message Line
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 31
 Error javadoc JavadocStyle First sentence should end with a period. 41
 Error javadoc JavadocStyle First sentence should end with a period. 44
 Error javadoc JavadocStyle First sentence should end with a period. 47
 Error javadoc JavadocStyle First sentence should end with a period. 50
 Error javadoc JavadocStyle First sentence should end with a period. 53
 Error javadoc JavadocStyle First sentence should end with a period. 56
 Error javadoc JavadocStyle First sentence should end with a period. 59
 Error misc FinalParameters Parameter mapping should be final. 79
 Error misc FinalParameters Parameter request should be final. 79
 Error misc FinalParameters Parameter mapping should be final. 104
 Error misc FinalParameters Parameter request should be final. 105
 Error misc FinalParameters Parameter color should be final. 185
 Error misc FinalParameters Parameter confirm should be final. 193
 Error misc FinalParameters Parameter hidden should be final. 201
 Error misc FinalParameters Parameter message should be final. 209
 Error misc FinalParameters Parameter name should be final. 217
 Error misc FinalParameters Parameter rating should be final. 225
 Error misc FinalParameters Parameter secret should be final. 233

examples/token/PrepareTokenAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error misc FinalParameters Parameter mapping should be final. 67
 Error misc FinalParameters Parameter form should be final. 68
 Error misc FinalParameters Parameter request should be final. 69
 Error misc FinalParameters Parameter response should be final. 70

examples/token/ProcessTokenAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 35
 Error misc FinalParameters Parameter mapping should be final. 69
 Error misc FinalParameters Parameter form should be final. 70
 Error misc FinalParameters Parameter request should be final. 71
 Error misc FinalParameters Parameter response should be final. 72

examples/validator/CustomValidator.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 34
 Error design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 39
 Error javadoc JavadocStyle First sentence should end with a period. 52
 Error javadoc JavadocMethod @return tag should be present and have description. 66
 Error misc FinalParameters Parameter bean should be final. 67
 Error javadoc JavadocMethod Expected @param tag for 'bean'. 67
 Error misc FinalParameters Parameter va should be final. 68
 Error javadoc JavadocMethod Expected @param tag for 'va'. 68
 Error misc FinalParameters Parameter field should be final. 69
 Error javadoc JavadocMethod Expected @param tag for 'field'. 69
 Error misc FinalParameters Parameter errors should be final. 70
 Error javadoc JavadocMethod Expected @param tag for 'errors'. 70
 Error misc FinalParameters Parameter validator should be final. 71
 Error javadoc JavadocMethod Expected @param tag for 'validator'. 71
 Error misc FinalParameters Parameter request should be final. 72
 Error javadoc JavadocMethod Expected @param tag for 'request'. 72

examples/validator/ProcessValidatorAction.java

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline. 1
 Error header RegexpHeader Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. 4
 Error javadoc JavadocStyle First sentence should end with a period. 32
 Error misc FinalParameters Parameter mapping should be final. 66
 Error misc FinalParameters Parameter form should be final. 67
 Error misc FinalParameters Parameter request should be final. 68
 Error misc FinalParameters Parameter response should be final. 69