Checkstyle Results

The following document contains the results of Checkstyle 9.3 with checkstyle.xml ruleset.

Summary

Files  Info  Warnings  Errors
4 0 0 58

Files

File  I  W  E
org/sentrysoftware/http/HttpClient.java 0 0 26
org/sentrysoftware/http/HttpResponse.java 0 0 4
org/sentrysoftware/http/ThreadSafeNoCacheAuthenticator.java 0 0 28

Rules

Category Rule Violations Severity
blocks LeftCurly
  • option: "nlow"
2  Error
design FinalClass 1  Error
HideUtilityClassConstructor 1  Error
VisibilityModifier 4  Error
misc FinalParameters 39  Error
modifier RedundantModifier 1  Error
regexp RegexpSingleline
  • format: "\s+$"
  • maximum: "0"
  • message: "Line has trailing spaces."
  • minimum: "0"
1  Error
RegexpSingleline
  • format: "^\s* +\s*[^*]"
  • message: "Indentation must use tab characters"
3  Error
sizes MethodLength 1  Error
ParameterNumber
  • tokens: "METHOD_DEF"
1  Error
whitespace NoWhitespaceAfter 1  Error
OperatorWrap 1  Error
WhitespaceAfter
  • tokens: "COMMA, SEMI"
2  Error

Details

org/sentrysoftware/http/HttpClient.java

Severity Category Rule Message Line
 Error design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 60
 Error misc FinalParameters Parameter certs should be final. 91
 Error misc FinalParameters Parameter authType should be final. 91
 Error misc FinalParameters Parameter certs should be final. 94
 Error misc FinalParameters Parameter authType should be final. 94
 Error misc FinalParameters Parameter httpURL should be final. 126
 Error sizes MethodLength Method sendRequest length is 215 lines (max allowed is 150). 167
 Error sizes ParameterNumber More than 7 parameters (found 14). 167
 Error misc FinalParameters Parameter url should be final. 168
 Error misc FinalParameters Parameter method should be final. 169
 Error misc FinalParameters Parameter specifiedSslProtocolArray should be final. 170
 Error whitespace NoWhitespaceAfter 'String' is followed by whitespace. 170
 Error misc FinalParameters Parameter username should be final. 171
 Error misc FinalParameters Parameter password should be final. 171
 Error misc FinalParameters Parameter proxyServer should be final. 172
 Error misc FinalParameters Parameter proxyPort should be final. 172
 Error misc FinalParameters Parameter proxyUsername should be final. 172
 Error misc FinalParameters Parameter proxyPassword should be final. 172
 Error misc FinalParameters Parameter userAgent should be final. 173
 Error misc FinalParameters Parameter addHeaderMap should be final. 174
 Error misc FinalParameters Parameter body should be final. 175
 Error misc FinalParameters Parameter timeout should be final. 176
 Error misc FinalParameters Parameter downloadToPath should be final. 177
 Error blocks LeftCurly '{' at column 23 should be on a new line. 178
 Error blocks LeftCurly '{' at column 7 should be on a new line. 325
 Error whitespace OperatorWrap '?' should be on a new line. 362

org/sentrysoftware/http/HttpResponse.java

Severity Category Rule Message Line
 Error misc FinalParameters Parameter code should be final. 58
 Error misc FinalParameters Parameter name should be final. 79
 Error misc FinalParameters Parameter value should be final. 79
 Error misc FinalParameters Parameter data should be final. 97

org/sentrysoftware/http/ThreadSafeNoCacheAuthenticator.java

Severity Category Rule Message Line
 Error design FinalClass Class ThreadSafeNoCacheAuthenticator should be declared as final. 69
 Error design VisibilityModifier Variable 'username' must be private and have accessor methods. 80
 Error design VisibilityModifier Variable 'password' must be private and have accessor methods. 81
 Error design VisibilityModifier Variable 'proxyUsername' must be private and have accessor methods. 82
 Error design VisibilityModifier Variable 'proxyPassword' must be private and have accessor methods. 83
 Error modifier RedundantModifier Redundant 'public' modifier. 85
 Error misc FinalParameters Parameter pUsername should be final. 85
 Error misc FinalParameters Parameter pPassword should be final. 85
 Error misc FinalParameters Parameter pProxyUsername should be final. 85
 Error misc FinalParameters Parameter pProxyPassword should be final. 85
 Error whitespace WhitespaceAfter ',' is not followed by whitespace. 122
 Error whitespace WhitespaceAfter ',' is not followed by whitespace. 122
 Error regexp RegexpSingleline Line has trailing spaces. 129
 Error misc FinalParameters Parameter pUsername should be final. 135
 Error misc FinalParameters Parameter pPassword should be final. 135
 Error misc FinalParameters Parameter pProxyUsername should be final. 135
 Error misc FinalParameters Parameter pProxyPassword should be final. 135
 Error misc FinalParameters Parameter pUsername should be final. 148
 Error misc FinalParameters Parameter pPassword should be final. 148
 Error regexp RegexpSingleline Indentation must use tab characters 194
 Error misc FinalParameters Parameter pkey should be final. 194
 Error misc FinalParameters Parameter value should be final. 194
 Error regexp RegexpSingleline Indentation must use tab characters 195
 Error misc FinalParameters Parameter pkey should be final. 195
 Error misc FinalParameters Parameter skey should be final. 195
 Error regexp RegexpSingleline Indentation must use tab characters 196
 Error misc FinalParameters Parameter pkey should be final. 196
 Error misc FinalParameters Parameter entry should be final. 196
No results.