Struts Apps - Checkstyle Results

##### Struts Apps

- Welcome

##### Components

- Struts Apps
- Struts EL
- Struts Extras
- Struts Faces
- Struts Scripting
- Struts Taglib
- Struts Tiles

##### Quick Links

- Apache Struts Home
- Struts 1

##### Project Documentation

- Project Information
- Project Reports
  - Checkstyle
  - CPD Report
  - JavaDocs
  - PMD Report
  - Source Xref
  - Surefire Report

## Checkstyle Results

The following document contains the results of Checkstyle.

## Summary

Files | Infos | Warnings | Errors
--- | --- | --- | ---
33 | 0 | 0 | 104

## Files

Files | I | W | E
--- | --- | --- | ---
examples/SuccessAction.java | 0 | 0 | 1
examples/TestBean.java | 0 | 0 | 15
examples/bean/ExampleBean.java | 0 | 0 | 19
examples/bean/NestedBean.java | 0 | 0 | 3
examples/bean/PrepareBeanAction.java | 0 | 0 | 1
examples/bean/package.html | 0 | 0 | 1
examples/dyna/ProcessDynaAction.java | 0 | 0 | 2
examples/dyna/package.html | 0 | 0 | 1
examples/links/PrepareLinksAction.java | 0 | 0 | 1
examples/links/ProcessLinksAction.java | 0 | 0 | 2
examples/links/package.html | 0 | 0 | 1
examples/localization/ProcessLocalizationAction.java | 0 | 0 | 2
examples/localization/package.html | 0 | 0 | 1
examples/logic/PrepareLogicAction.java | 0 | 0 | 2
examples/logic/package.html | 0 | 0 | 1
examples/multibox/MultiboxActionForm.java | 0 | 0 | 5
examples/multibox/PrepareMultiboxAction.java | 0 | 0 | 1
examples/multibox/ProcessMultiboxAction.java | 0 | 0 | 2
examples/multibox/package.html | 0 | 0 | 1
examples/options/BookBean.java | 0 | 0 | 5
examples/options/PrepareOptionsAction.java | 0 | 0 | 4
examples/options/ProcessOptionsAction.java | 0 | 0 | 2
examples/options/package.html | 0 | 0 | 1
examples/package.html | 0 | 0 | 1
examples/simple/ProcessSimpleAction.java | 0 | 0 | 2
examples/simple/SimpleActionForm.java | 0 | 0 | 9
examples/simple/package.html | 0 | 0 | 1
examples/token/PrepareTokenAction.java | 0 | 0 | 1
examples/token/ProcessTokenAction.java | 0 | 0 | 2
examples/token/package.html | 0 | 0 | 1
examples/validator/CustomValidator.java | 0 | 0 | 10
examples/validator/ProcessValidatorAction.java | 0 | 0 | 2
examples/validator/package.html | 0 | 0 | 1

## Rules

Rules | Violations | Severity
--- | --- | ---
PackageHtml | 11 | Error
NewlineAtEndOfFile | 0 | Error
Translation | 0 | Error

JavadocMethod

- allowUndeclaredRTE: `"true"`

6

Error

JavadocType | 0 | Error
JavadocVariable | 0 | Error
JavadocStyle | 50 | Error
ConstantName | 0 | Error
LocalFinalVariableName | 0 | Error
LocalVariableName | 0 | Error
MemberName | 0 | Error
MethodName | 0 | Error
PackageName | 0 | Error
ParameterName | 0 | Error
StaticVariableName | 0 | Error
TypeName | 0 | Error

RegexpHeader

- header
  1: `/\*\s*`
  2: `\*\s*\$Id.*\$`
  3: `\*\s*`
  4: `\*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.`
  5: `\*\s*`
  6: `\*\s*Licensed under the Apache License, Version 2\.0 \(the .License.\);`
  7: `\*\s*you may not use this file except in compliance with the License\.`
  8: `\*\s*You may obtain a copy of the License at`
  9: `\*\s*`
  10: `\*\s*http://www\.apache\.org/licenses/LICENSE\-2\.0`
  11: `\*\s*`
  12: `\*\s*Unless required by applicable law or agreed to in writing, software`
  13: `\*\s*distributed under the License is distributed on an .AS IS. BASIS,`
  14: `\*\s*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.`
  15: `\*\s*See the License for the specific language governing permissions and`
  16: `\*\s*limitations under the License\.`
  17: `\*/\s*`

22

Error

AvoidStarImport | 0 | Error
IllegalImport | 0 | Error
RedundantImport | 0 | Error
UnusedImports | 0 | Error
FileLength | 0 | Error

LineLength

- max: `"120"`
- ignorePattern: `"^ \* @version .*$"`

0

Error

MethodLength | 0 | Error
ParameterNumber | 0 | Error
EmptyForIteratorPad | 0 | Error

NoWhitespaceAfter

- tokens: `"BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"`

0

Error

NoWhitespaceBefore | 0 | Error
OperatorWrap | 0 | Error
ParenPad | 0 | Error
TypecastParenPad | 0 | Error
TabCharacter | 0 | Error
WhitespaceAfter | 0 | Error
WhitespaceAround | 0 | Error
ModifierOrder | 0 | Error
RedundantModifier | 0 | Error
AvoidNestedBlocks | 0 | Error
EmptyBlock | 0 | Error
LeftCurly | 0 | Error
NeedBraces | 0 | Error
RightCurly | 0 | Error
DoubleCheckedLocking | 0 | Error
EmptyStatement | 0 | Error
EqualsHashCode | 0 | Error
IllegalInstantiation | 0 | Error
InnerAssignment | 0 | Error
MagicNumber | 14 | Error
MissingSwitchDefault | 0 | Error
RedundantThrows | 0 | Error
SimplifyBooleanExpression | 0 | Error
SimplifyBooleanReturn | 0 | Error
FinalClass | 0 | Error
HideUtilityClassConstructor | 1 | Error
InterfaceIsType | 0 | Error

VisibilityModifier

- protectedAllowed: `"true"`

0

Error

ArrayTypeStyle | 0 | Error

GenericIllegalRegexp

- message: `"Line has trailing spaces."`
- format: `"\s+$"`

0

Error

TodoComment | 0 | Error
UpperEll | 0 | Error

## Details

### examples/SuccessAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4

### examples/TestBean.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 27
| First sentence should end with a period. | 36
| First sentence should end with a period. | 39
| '45213.451' is a magic number. | 40
| First sentence should end with a period. | 42
| '-123.582F' is a magic number. | 43
| First sentence should end with a period. | 45
| '256' is a magic number. | 46
| First sentence should end with a period. | 48
| '1321546L' is a magic number. | 49
| First sentence should end with a period. | 51
| '257' is a magic number. | 52
| First sentence should end with a period. | 54
| First sentence should end with a period. | 57

### examples/bean/ExampleBean.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 28
| First sentence should end with a period. | 37
| First sentence should end with a period. | 40
| '45213.451' is a magic number. | 41
| First sentence should end with a period. | 43
| '-123.582F' is a magic number. | 44
| First sentence should end with a period. | 46
| '256' is a magic number. | 47
| First sentence should end with a period. | 49
| '1321546L' is a magic number. | 50
| First sentence should end with a period. | 52
| '257' is a magic number. | 53
| First sentence should end with a period. | 55
| First sentence should end with a period. | 58
| First sentence should end with a period. | 61
| First sentence should end with a period. | 64
| First sentence should end with a period. | 67
| First sentence should end with a period. | 70

### examples/bean/NestedBean.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 27
| First sentence should end with a period. | 36

### examples/bean/PrepareBeanAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4

### examples/bean/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/dyna/ProcessDynaAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 32

### examples/dyna/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/links/PrepareLinksAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4

### examples/links/ProcessLinksAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 32

### examples/links/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/localization/ProcessLocalizationAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 36

### examples/localization/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/logic/PrepareLogicAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| '7' is a magic number. | 86

### examples/logic/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/multibox/MultiboxActionForm.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 30
| First sentence should end with a period. | 39
| First sentence should end with a period. | 42
| First sentence should end with a period. | 56

### examples/multibox/PrepareMultiboxAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4

### examples/multibox/ProcessMultiboxAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 32

### examples/multibox/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/options/BookBean.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 24
| First sentence should end with a period. | 33
| First sentence should end with a period. | 38
| First sentence should end with a period. | 65

### examples/options/PrepareOptionsAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| '3' is a magic number. | 155
| '4' is a magic number. | 156
| '5' is a magic number. | 157

### examples/options/ProcessOptionsAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 32

### examples/options/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/simple/ProcessSimpleAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 32

### examples/simple/SimpleActionForm.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 31
| First sentence should end with a period. | 40
| First sentence should end with a period. | 43
| First sentence should end with a period. | 46
| First sentence should end with a period. | 49
| First sentence should end with a period. | 52
| First sentence should end with a period. | 55
| First sentence should end with a period. | 58

### examples/simple/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/token/PrepareTokenAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4

### examples/token/ProcessTokenAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 35

### examples/token/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0

### examples/validator/CustomValidator.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 33
| Utility classes should not have a public or default constructor. | 38
| First sentence should end with a period. | 51
| Expected an @return tag. | 57
| Expected @param tag for 'bean'. | 58
| Expected @param tag for 'va'. | 59
| Expected @param tag for 'field'. | 60
| Expected @param tag for 'errors'. | 61
| Expected @param tag for 'request'. | 62

### examples/validator/ProcessValidatorAction.java

Violation | Message | Line
--- | --- | ---
| Line does not match expected header line of ' \*\s*Copyright \d{4}(-\d{4}|,\d{4})* The Apache Software Foundation\.'. | 4
| First sentence should end with a period. | 32

### examples/validator/package.html

Violation | Message | Line
--- | --- | ---
| Missing package documentation file. | 0