PMD Results

The following document contains the results of PMD 7.14.0.

Violations By Priority

Priority 1

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/CsvAuditEventHandler.java

Rule Violation Line
DoubleCheckedLocking Double checked locking is not thread safe in Java. 306

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/LazyList.java

Rule Violation Line
DoubleCheckedLocking Double checked locking is not thread safe in Java. 61

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/LazyMap.java

Rule Violation Line
DoubleCheckedLocking Double checked locking is not thread safe in Java. 62

Priority 2

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/jaspi/modules/session/jwt/JwtSessionModule.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 106

Wren Security Commons Authn. - JASPI (JSR-196) OpenAM Session Module - org/forgerock/jaspi/modules/session/openam/OpenAMSessionModule.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 424

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/utils/PngUtils.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 259

Priority 3

Wren Security Commons Audit - Framework Core - org/forgerock/audit/AuditServiceImpl.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16543

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/AccessAuditEventBuilder.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 121

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/EventTopicsMetaDataBuilder.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'configStream': resource specifications are implicitly final 147

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/handlers/writers/RotatableWriter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 151153
CollapsibleIfStatements This if statement could be combined with its parent 225227

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/handlers/writers/TextWriter.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on class 'Stream': the class is declared in an interface type 59

Wren Security Commons Audit - Framework Core - org/forgerock/audit/filter/FilterChainBuilder.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7072

Wren Security Commons Audit - Framework Core - org/forgerock/audit/rotation/FixedTimeRotationPolicy.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 31

Wren Security Commons Audit - Framework Core - org/forgerock/audit/secure/KeyStoreHandler.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getStore': the method is declared in an interface type 31
UnnecessaryModifier Unnecessary modifier 'public' on method 'setStore': the method is declared in an interface type 41
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPassword': the method is declared in an interface type 48
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocation': the method is declared in an interface type 55
UnnecessaryModifier Unnecessary modifier 'public' on method 'getType': the method is declared in an interface type 62
UnnecessaryModifier Unnecessary modifier 'public' on method 'store': the method is declared in an interface type 70

Wren Security Commons Audit - Framework Core - org/forgerock/audit/util/DateUtil.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 186188

Wren Security Commons Audit - Framework Core - org/forgerock/audit/util/JsonValueUtils.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 303

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/CsvAuditEventHandler.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16612

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/CsvSecureMapReader.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 34

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/SecureCsvWriter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16435
SimplifiedTernary This conditional expression can be simplified with || or && 302

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/StandardCsvWriter.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 45
SimplifiedTernary This conditional expression can be simplified with || or && 116

Wren Security Commons Audit - Elasticsearch Event Handler - org/forgerock/audit/handlers/elasticsearch/ElasticsearchAuditEventHandler.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16528

Wren Security Commons Audit - Elasticsearch Event Handler - org/forgerock/audit/handlers/elasticsearch/ElasticsearchQueryFilterVisitor.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16280

Wren Security Commons Audit - JDBC Event Handler - org/forgerock/audit/handlers/jdbc/BufferedJdbcAuditEventExecutor.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'preparedStatement': resource specifications are implicitly final 192

Wren Security Commons Audit - JDBC Event Handler - org/forgerock/audit/handlers/jdbc/JdbcAuditEventExecutorImpl.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'preparedStatement': resource specifications are implicitly final 57

Wren Security Commons Audit - JDBC Event Handler - org/forgerock/audit/handlers/jdbc/StringSqlQueryFilterVisitor.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 68

Wren Security Commons Audit - JMS Event Handler - org/forgerock/audit/handlers/jms/JmsAuditEventHandler.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 254256

Wren Security Commons Audit - JSON Event Handler - org/forgerock/audit/handlers/json/JsonAuditEventHandler.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17226
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 136137
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 163164

Wren Security Commons Audit - JSON Event Handler - org/forgerock/audit/handlers/json/JsonFileWriter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18534

Wren Security Commons Audit - Splunk Event Handler - org/forgerock/audit/handlers/splunk/SplunkAuditEventHandler.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16249

Wren Security Commons Audit - Syslog Event Handler - org/forgerock/audit/handlers/syslog/SyslogFormatter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17326

Wren Security Commons Audit - JSON Support Library - org/forgerock/audit/json/AuditJsonConfig.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'EVENTS_FIELD'. 59

Wren Security Commons Audit - Servlet Example - org/forgerock/audit/AuditHttpApplication.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'eventHandlersConfig': resource specifications are implicitly final 70

Wren Security Commons Authn. - JASPI (JSR-196) Functional Tests - org/forgerock/caf/authn/test/runtime/GuiceModule.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18140

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/WDSSO.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 370373

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/caf/http/SetCookieSupport.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 9294

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/jaspi/modules/session/jwt/AbstractJwtSessionModule.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 190
SimplifiedTernary This conditional expression can be simplified with || or && 192
SimplifiedTernary This conditional expression can be simplified with || or && 194
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 569

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/jaspi/modules/session/jwt/JwtSessionModule.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 175177

Wren Security Commons Authn. - JASPI (JSR-196) OpenAM Session Module - org/forgerock/jaspi/modules/session/openam/OpenAMSessionModule.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17462
UnusedPrivateField Avoid unused private fields such as 'MIME_TYPE_APPLICATION_JSON'. 82
UnusedPrivateField Avoid unused private fields such as 'CHARACTER_ENCODING'. 83

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/OpenIdConnectModule.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17272

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/helpers/SimpleHTTPClient.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 91

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/OpenIdResolver.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEY_ALIAS_KEY': the field is declared in an interface type 41
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ISSUER_KEY': the field is declared in an interface type 46
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'CLIENT_SECRET_KEY': the field is declared in an interface type 51
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'JWK': the field is declared in an interface type 56
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'WELL_KNOWN_CONFIGURATION': the field is declared in an interface type 61
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEYSTORE_LOCATION_KEY': the field is declared in an interface type 66
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEYSTORE_TYPE_KEY': the field is declared in an interface type 71
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEYSTORE_PASS_KEY': the field is declared in an interface type 76
UnnecessaryModifier Unnecessary modifier 'public' on method 'validateIdentity': the method is declared in an interface type 84
UnnecessaryModifier Unnecessary modifier 'public' on method 'getIssuer': the method is declared in an interface type 91

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverService.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getResolverForIssuer': the method is declared in an interface type 53
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithKey': the method is declared in an interface type 66
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithSecret': the method is declared in an interface type 78
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithJWK': the method is declared in an interface type 90
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithWellKnownOpenIdConfiguration': the method is declared in an interface type 101

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverServiceConfigurator.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureService': the method is declared in an interface type 40

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverServiceImpl.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'readTimeout'. 50
UnusedPrivateField Avoid unused private fields such as 'connTimeout'. 51

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/AggregateAuthContext.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 56

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/AuthenticationFramework.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 18275

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/SessionAuthContext.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 42

Wren Security Commons Authz. - OAuth2 Filter Module - org/forgerock/authz/modules/oauth2/OAuth2CrestAuthorizationModule.java

Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'securityContext'. 212

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BatchingBloomFilter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8094

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BloomFilters.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'NeverExpires': nested enums are implicitly static 49

Wren Security Commons Bloom Filters - Monitoring - org/forgerock/bloomfilter/monitoring/BloomFilterMonitor.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 300305

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/AbstractDocbkxMojo.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7880

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/PreProcessMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 6163

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/post/NoOp.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'm'. 29

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/utils/PngUtils.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'absolutePath'. 79

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/XCiteMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8387

Wren Security Guice Core - org/forgerock/guice/core/InjectorConfiguration.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'InjectorConfiguration()': enum constructors are implicitly private 62

Wren Security Guice Core - org/forgerock/guice/core/InjectorHolder.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'InjectorHolder()': enum constructors are implicitly private 53

Wren Security Guice Core - org/forgerock/guice/core/internal/commons/lang/reflect/MemberUtils.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5254
EmptyCatchBlock Avoid empty catch blocks 8587

Wren Security Commons HTTP - CHF Bindings Test Utilities - org/forgerock/http/bindings/BindingTest.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17396
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 176
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 196
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 223
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 250
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'httpClientHandler': resource specifications are implicitly final 294

Wren Security Commons HTTP - Apache Async HttpClient integration - org/forgerock/http/apache/async/AsyncHttpClientProvider.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17194

Wren Security Commons HTTP - Apache HttpClient integration - org/forgerock/http/apache/sync/SyncHttpClientProvider.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19126

Wren Security Commons HTTP - Client Test Utilities - org/forgerock/http/handler/HttpClientHandlerTest.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17163

Wren Security Commons HTTP - Core Library - org/forgerock/http/header/ContentLengthHeader.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5961

Wren Security Commons HTTP - Core Library - org/forgerock/http/header/HeaderUtil.java

Rule Violation Line
EmptyControlStatement Empty if statement 218222

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/BranchingStreamWrapper.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 199201

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/FileBuffer.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 122124

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Cookie.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 172
SimplifiedTernary This conditional expression can be simplified with || or && 221

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Entity.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17488

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Request.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8486

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Response.java

Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 148

Wren Security Commons HTTP - Core Library - org/forgerock/http/routing/RouteMatchers.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 286288

Wren Security Commons HTTP - Core Library - org/forgerock/http/routing/UriRouteMatcher.java

Rule Violation Line
EmptyControlStatement Empty else statement 217219

Wren Security Commons HTTP - Core Library - org/forgerock/http/spi/Loader.java

Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 41

Wren Security Commons HTTP - Core Library - org/forgerock/http/swagger/SwaggerApiProducer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16257

Wren Security Commons HTTP - Core Library - org/forgerock/http/util/Uris.java

Rule Violation Line
JumbledIncrementer Avoid modifying an outer loop incrementer in an inner loop for update expression 411428

Wren Security Commons HTTP - Core Library - org/forgerock/services/routing/AbstractRouter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 269271

Wren Security Commons HTTP - OpenAPI Descriptor Example Module - org/forgerock/http/example/DescribedOauth2Endpoint.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17233

Wren Security Commons HTTP - Grizzly Integration Library - org/forgerock/http/grizzly/HandlerAdapter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16218

Wren Security Commons HTTP - OAuth 2.0 Resource Server Support - org/forgerock/http/oauth2/resolver/OpenAmAccessTokenResolver.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17226

Wren Security Commons HTTP - Servlet integration library - org/forgerock/http/servlet/HttpFrameworkServlet.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17374

Wren Security I18N Maven Plugin - org/forgerock/i18n/maven/AbstractGenerateMessagesMojo.java

Rule Violation Line
EmptyControlStatement Empty if statement 223225
CollapsibleIfStatements This if statement could be combined with its parent 647651
EmptyCatchBlock Avoid empty catch blocks 747749
EmptyCatchBlock Avoid empty catch blocks 755757

Wren Security I18N Maven Plugin - org/forgerock/i18n/maven/CleanMessagesMojo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 358361

Wren Security Commons JSON Crypto - Core Library - org/forgerock/json/crypto/JsonCrypto.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17159

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/helpers/FormatHelper.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'format'. 40

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/helpers/MaximumHelper.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8486

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/helpers/MinimumHelper.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8587

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/BooleanTypeValidator.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 58

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/IntegerTypeValidator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 116118

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/NumberTypeValidator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 117119

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 173176
EmptyControlStatement Empty if statement 195203
CollapsibleIfStatements This if statement could be combined with its parent 229240

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/SimpleValidator.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'validate': the method is declared in an interface type 41

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/StringTypeValidator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 110112
CollapsibleIfStatements This if statement could be combined with its parent 133135

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/UnionTypeValidator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8385

Wren Security Commons JWT - org/forgerock/json/jose/jwe/JweAlgorithmType.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 40

Wren Security Commons JWT - org/forgerock/json/jose/jwe/handlers/encryption/AbstractRSAESPkcs1V15AesCbcHmacEncryptionHandler.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'signingManager'. 46

Wren Security Commons JWT - org/forgerock/json/jose/jwe/handlers/encryption/RSAEncryptionHandler.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17164

Wren Security Commons JWT - org/forgerock/json/jose/jwk/KeyType.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'KeyType(String)': enum constructors are implicitly private 49

Wren Security Commons JWT - org/forgerock/json/jose/jwk/KeyUse.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'KeyUse()': enum constructors are implicitly private 38

Wren Security Commons JWT - org/forgerock/json/jose/jws/JwsAlgorithm.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 152

Wren Security Commons JWT - org/forgerock/json/jose/jws/JwtSecureHeader.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17409

Wren Security Commons JWT - org/forgerock/json/jose/utils/DerUtils.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 5759

Wren Security Commons - API Descriptor - org/forgerock/api/CrestApiProducer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17158

Wren Security Commons - API Descriptor - org/forgerock/api/commons/CommonsApi.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'Errors(int, String)': enum constructors are implicitly private 176

Wren Security Commons - API Descriptor - org/forgerock/api/jackson/CrestPropertyDetailsSchemaFactoryWrapper.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 141

Wren Security Commons - API Descriptor - org/forgerock/api/jackson/CrestStringSchema.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 188

Wren Security Commons - API Descriptor - org/forgerock/api/markup/ApiDocGenerator.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 181130

Wren Security Commons - API Descriptor - org/forgerock/api/markup/asciidoc/AsciiDoc.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17623
UnusedLocalVariable Avoid unused local variables such as 'symbol'. 283

Wren Security Commons - API Descriptor - org/forgerock/api/models/Action.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'action': the method is already in a final class 117

Wren Security Commons - API Descriptor - org/forgerock/api/models/ApiDescription.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16340

Wren Security Commons - API Descriptor - org/forgerock/api/models/Create.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'create': the method is already in a final class 77

Wren Security Commons - API Descriptor - org/forgerock/api/models/Delete.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'delete': the method is already in a final class 41

Wren Security Commons - API Descriptor - org/forgerock/api/models/Patch.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'patch': the method is already in a final class 85

Wren Security Commons - API Descriptor - org/forgerock/api/models/Read.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'read': the method is already in a final class 41

Wren Security Commons - API Descriptor - org/forgerock/api/models/Update.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'update': the method is already in a final class 41

Wren Security Commons - API Descriptor - org/forgerock/api/transform/OpenApiTransformer.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 171858

Wren Security Commons - API Descriptor - org/forgerock/api/util/ValidationUtil.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 91

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/examples/DynamicRealmDemo.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17212

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/examples/ReadModifyWriteDemo.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'server': resource specifications are implicitly final 47
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'connection': resource specifications are implicitly final 48

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/examples/VersionedResourcesDemo.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17203

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/http/examples/CrestHttpApplication.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17180

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/CrestAdapter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17478

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/HttpAdapter.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16936
EmptyControlStatement Empty if statement 548552
EmptyControlStatement Empty if statement 621625
CollapsibleIfStatements This if statement could be combined with its parent 691693

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/HttpUtils.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17964
EmptyCatchBlock Avoid empty catch blocks 588591

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/RequestRunner.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17550
UnnecessaryModifier Unnecessary modifier 'final' on method 'handleError': the method is already in a final class 130
UnnecessaryModifier Unnecessary modifier 'final' on method 'handleResult': the method is already in a final class 137
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitActionRequest': the method is already in a final class 148
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitCreateRequest': the method is already in a final class 182
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitDeleteRequest': the method is already in a final class 229
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitPatchRequest': the method is already in a final class 244
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitQueryRequest': the method is already in a final class 259
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitReadRequest': the method is already in a final class 339
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitUpdateRequest': the method is already in a final class 354
UnusedFormalParameter Avoid unused method parameters such as 'e'. 369

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/DescribableResourceHandler.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'api': the method is already in a final class 63

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/MemoryBackend.java

Rule Violation Line
EmptyControlStatement Empty else statement 454456

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/Requests.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'addSortKey': the method is already in a final class 460

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/Resources.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17556

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/Router.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17453

Wren Security Commons JSON Patch - Library - org/forgerock/security/keystore/KeystoreManagerException.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'cause'. 48

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/AnonymousProcessService.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17315

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/ProcessContextImpl.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17238

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/UserUpdateService.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 16170

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/crypto/FieldStorageScheme.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'hashField': the method is declared in an interface type 31
UnnecessaryModifier Unnecessary modifier 'public' on method 'fieldMatches': the method is declared in an interface type 41

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/util/RequirementsBuilder.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 229231

Wren Security Commons Self Service - Examples - org/forgerock/selfservice/example/ExampleEmailService.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17161

Wren Security Commons Self Service - Stages - org/forgerock/selfservice/stages/email/VerifyEmailAccountStage.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17197

Wren Security Commons Self Service - Stages - org/forgerock/selfservice/stages/kba/SecurityAnswerDefinitionStage.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17147

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/JsonValue.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 10191021

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/RangeSet.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 104106

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/SimpleHTTPClient.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 96

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/i18n/LocalizableString.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 98100

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/query/QueryFilter.java

Rule Violation Line
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 221

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/query/QueryFilterParser.java

Rule Violation Line
EmptyControlStatement Empty for statement 382384

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/thread/listener/ShutdownListener.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'shutdown': the method is declared in an interface type 28

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/thread/listener/ShutdownPriority.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'ShutdownPriority(int)': enum constructors are implicitly private 50

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/time/Duration.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17415

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/xml/XMLUtils.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 91
EmptyCatchBlock Avoid empty catch blocks 122

Priority 4

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/handlers/writers/RotatableWriter.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'MILLISECONDS' is already in scope because it is imported in this file 374
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'MILLISECONDS' is already in scope because it is imported in this file 375
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'MILLISECONDS' is already in scope because it is imported in this file 376

Wren Security Commons Audit - Framework Core - org/forgerock/audit/secure/KeyStoreSecureStorage.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'SIGNATURE_ALGORITHM' is already in scope because it is declared in an enclosing type 95
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'SIGNATURE_ALGORITHM' is already in scope because it is declared in an enclosing type 104
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_CURRENT_KEY' is already in scope because it is declared in an enclosing type 127
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_INITIAL_KEY' is already in scope because it is declared in an enclosing type 132
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_CURRENT_SIGNATURE' is already in scope because it is declared in an enclosing type 137
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_CURRENT_KEY' is already in scope because it is declared in an enclosing type 148
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_INITIAL_KEY' is already in scope because it is declared in an enclosing type 154

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/CsvAuditEventHandler.java

Rule Violation Line
UselessParentheses Useless parentheses. 540

Wren Security Commons Audit - JSON Event Handler - org/forgerock/audit/handlers/json/JsonFileWriter.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Math': 'max' is already in scope 101

Wren Security Commons Authn. - JASPI (JSR-196) Functional Tests - org/forgerock/caf/authn/test/runtime/GuiceModule.java

Rule Violation Line
UnnecessaryImport Unused static import 'org.forgerock.caf.authentication.framework.AuthenticationFilter.AuthenticationModuleBuilder' 20

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/Base64.java

Rule Violation Line
UselessParentheses Useless parentheses. 108
UselessParentheses Useless parentheses. 247
UselessParentheses Useless parentheses. 295
UselessParentheses Useless parentheses. 433
UselessParentheses Useless parentheses. 594

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/DerValue.java

Rule Violation Line
UselessParentheses Useless parentheses. 119

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/WDSSO.java

Rule Violation Line
UselessParentheses Useless parentheses. 368
UselessParentheses Useless parentheses. 370

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/OpenIdConnectModule.java

Rule Violation Line
UnnecessaryImport Unused import 'jakarta.security.auth.message.AuthException' 29
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'HEADER_KEY' is already in scope because it is declared in an enclosing type 140
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'READ_TIMEOUT_KEY' is already in scope because it is declared in an enclosing type 143
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'CONNECTION_TIMEOUT_KEY' is already in scope because it is declared in an enclosing type 144
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'RESOLVERS_KEY' is already in scope because it is declared in an enclosing type 162

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/BaseOpenIdResolver.java

Rule Violation Line
UselessParentheses Useless parentheses. 104

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverServiceConfiguratorImpl.java

Rule Violation Line
UselessParentheses Useless parentheses. 116
UselessParentheses Useless parentheses. 117
UselessParentheses Useless parentheses. 118

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/AuthenticationFramework.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_CONTEXT' is already in scope because it is declared in an enclosing type 139
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_CONTEXT' is already in scope because it is declared in an enclosing type 168
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_PRINCIPAL' is already in scope because it is declared in an enclosing type 172
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_CONTEXT' is already in scope because it is declared in an enclosing type 173
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_REQUEST_ID' is already in scope because it is declared in an enclosing type 188

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/AtomicBloomFilter.java

Rule Violation Line
UselessParentheses Useless parentheses. 115

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BloomFilterChain.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Math': 'max' is already in scope 146

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BloomFilterStatistics.java

Rule Violation Line
UselessParentheses Useless parentheses. 106
UselessParentheses Useless parentheses. 138

Wren Security Commons Bloom Filters - Monitoring - org/forgerock/bloomfilter/monitoring/BloomFilterMonitor.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'SECONDS' is already in scope because it is imported in this file 187

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/Citation.java

Rule Violation Line
UselessParentheses Useless parentheses. 312
UselessParentheses Useless parentheses. 322

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/Resolver.java

Rule Violation Line
UselessParentheses Useless parentheses. 136

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/utils/StringUtils.java

Rule Violation Line
UselessParentheses Useless parentheses. 411

Wren Security Guice Core - org/forgerock/guice/core/internal/commons/lang/reflect/ConstructorUtils.java

Rule Violation Line
UselessParentheses Useless parentheses. 79

Wren Security Commons HTTP - JMH benchmarks - org/forgerock/http/serialization/JacksonJsonSerialization.java

Rule Violation Line
UnnecessaryImport Unused import 'org.openjdk.jmh.annotations.Fork' 33

Wren Security Commons HTTP - Apache Async HttpClient integration - org/forgerock/http/apache/async/CloseableBufferFactory.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio': 'ByteBuffer' is already in scope because it is imported in this file 58

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/BranchingStreamWrapper.java

Rule Violation Line
UselessParentheses Useless parentheses. 88

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/ByteArrayBranchingStream.java

Rule Violation Line
UselessParentheses Useless parentheses. 61

Wren Security Commons HTTP - Core Library - org/forgerock/http/util/Json.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Json': 'PREFERRED_LOCALES_ATTRIBUTE' is already in scope because it is declared in an enclosing type 299

Wren Security Commons HTTP - Core Library - org/forgerock/http/util/Paths.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Paths': 'urlDecode' is already in scope 85

Wren Security I18N Core - org/forgerock/i18n/LocalizableMessage.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'LocalizableMessage': 'raw' is already in scope 61

Wren Security I18N Maven Plugin - org/forgerock/i18n/maven/AbstractGenerateMessagesMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 396

Wren Security I18N Maven Plugin - org/forgerock/i18n/maven/CleanMessagesMojo.java

Rule Violation Line
UselessParentheses Useless parentheses. 347

Wren Security I18N SLF4J Support - org/forgerock/i18n/slf4j/LocalizedLogger.java

Rule Violation Line
UselessParentheses Useless parentheses. 4795

Wren Security Commons JSON Crypto - Core Library - org/forgerock/json/crypto/simple/SimpleDecryptor.java

Rule Violation Line
UselessParentheses Useless parentheses. 116

Wren Security Commons JSON Crypto - Core Library - org/forgerock/json/crypto/simple/SimpleEncryptor.java

Rule Violation Line
UselessParentheses Useless parentheses. 167

Wren Security Commons JSON Schema - Draft-04 Validator CLI - org/forgerock/json/schema/Main.java

Rule Violation Line
UselessParentheses Useless parentheses. 169
UselessParentheses Useless parentheses. 169

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/ArrayTypeValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 160
UselessParentheses Useless parentheses. 163

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 153

Wren Security Commons JWT - org/forgerock/json/jose/jwe/EncryptionMethod.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'EncryptionMethod': 'values' is already in scope 154

Wren Security Commons JWT - org/forgerock/json/jose/jwe/JweAlgorithm.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JweAlgorithm': 'values' is already in scope 90

Wren Security Commons JWT - org/forgerock/json/jose/jws/JwsAlgorithm.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JwsAlgorithm': 'values' is already in scope 138

Wren Security Commons JWT - org/forgerock/json/jose/utils/DerUtils.java

Rule Violation Line
UselessParentheses Useless parentheses. 61

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/HttpUtils.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HttpUtils': 'METHOD_POST' is already in scope because it is declared in an enclosing type 639
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HttpUtils': 'HEADER_X_HTTP_METHOD_OVERRIDE' is already in scope because it is declared in an enclosing type 640
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HttpUtils': 'HEADER_X_HTTP_METHOD_OVERRIDE' is already in scope because it is declared in an enclosing type 641

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/RequestRunner.java

Rule Violation Line
UselessParentheses Useless parentheses. 125127

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/AdviceWarning.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AdviceWarning': 'newBuilder' is already in scope 110
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AdviceWarning': 'newBuilder' is already in scope 126

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/config/ClassNameFallbackPropertyTypeResolver.java

Rule Violation Line
UnnecessaryImport Unused import 'com.fasterxml.jackson.databind.ObjectMapper' 23
UnnecessaryImport Unused import 'com.fasterxml.jackson.databind.json.JsonMapper' 25

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/util/Answers.java

Rule Violation Line
UselessParentheses Useless parentheses. 71

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/JsonPatch.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JsonPatch': 'VALUE_PTR' is already in scope because it is declared in an enclosing type 68
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JsonPatch': 'VALUE_PTR' is already in scope because it is declared in an enclosing type 69

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/JsonValue.java

Rule Violation Line
UselessParentheses Useless parentheses. 193
UselessParentheses Useless parentheses. 379
UselessParentheses Useless parentheses. 379
UselessParentheses Useless parentheses. 392
UselessParentheses Useless parentheses. 405
UselessParentheses Useless parentheses. 540
UselessParentheses Useless parentheses. 553
UselessParentheses Useless parentheses. 553
UselessParentheses Useless parentheses. 639
UselessParentheses Useless parentheses. 639
UselessParentheses Useless parentheses. 651
UselessParentheses Useless parentheses. 651
UselessParentheses Useless parentheses. 746
UselessParentheses Useless parentheses. 859
UselessParentheses Useless parentheses. 888
UselessParentheses Useless parentheses. 897
UselessParentheses Useless parentheses. 906
UselessParentheses Useless parentheses. 915
UselessParentheses Useless parentheses. 933
UselessParentheses Useless parentheses. 942

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/Pair.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Pair': 'of' is already in scope 49

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/RangeSet.java

Rule Violation Line
UselessParentheses Useless parentheses. 90
UselessParentheses Useless parentheses. 91
UselessParentheses Useless parentheses. 93
UselessParentheses Useless parentheses. 101

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/query/QueryFilter.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'equalTo' is already in scope 556
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'greaterThan' is already in scope 558
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'greaterThanOrEqualTo' is already in scope 560
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'lessThan' is already in scope 562
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'lessThanOrEqualTo' is already in scope 564
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'contains' is already in scope 566
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'startsWith' is already in scope 568

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/time/Duration.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'DAYS' is already in scope because it is imported in this file 276

Files

Wren Security Commons Audit - Framework Core - org/forgerock/audit/AuditServiceImpl.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16543

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/AccessAuditEventBuilder.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 121

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/EventTopicsMetaDataBuilder.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'configStream': resource specifications are implicitly final 3 147

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/handlers/writers/RotatableWriter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 151153
CollapsibleIfStatements This if statement could be combined with its parent 3 225227
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'MILLISECONDS' is already in scope because it is imported in this file 4 374
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'MILLISECONDS' is already in scope because it is imported in this file 4 375
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'MILLISECONDS' is already in scope because it is imported in this file 4 376

Wren Security Commons Audit - Framework Core - org/forgerock/audit/events/handlers/writers/TextWriter.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on class 'Stream': the class is declared in an interface type 3 59

Wren Security Commons Audit - Framework Core - org/forgerock/audit/filter/FilterChainBuilder.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7072

Wren Security Commons Audit - Framework Core - org/forgerock/audit/rotation/FixedTimeRotationPolicy.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 31

Wren Security Commons Audit - Framework Core - org/forgerock/audit/secure/KeyStoreHandler.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getStore': the method is declared in an interface type 3 31
UnnecessaryModifier Unnecessary modifier 'public' on method 'setStore': the method is declared in an interface type 3 41
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPassword': the method is declared in an interface type 3 48
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocation': the method is declared in an interface type 3 55
UnnecessaryModifier Unnecessary modifier 'public' on method 'getType': the method is declared in an interface type 3 62
UnnecessaryModifier Unnecessary modifier 'public' on method 'store': the method is declared in an interface type 3 70

Wren Security Commons Audit - Framework Core - org/forgerock/audit/secure/KeyStoreSecureStorage.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'SIGNATURE_ALGORITHM' is already in scope because it is declared in an enclosing type 4 95
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'SIGNATURE_ALGORITHM' is already in scope because it is declared in an enclosing type 4 104
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_CURRENT_KEY' is already in scope because it is declared in an enclosing type 4 127
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_INITIAL_KEY' is already in scope because it is declared in an enclosing type 4 132
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_CURRENT_SIGNATURE' is already in scope because it is declared in an enclosing type 4 137
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_CURRENT_KEY' is already in scope because it is declared in an enclosing type 4 148
UnnecessaryFullyQualifiedName Unnecessary qualifier 'KeyStoreSecureStorage': 'ENTRY_INITIAL_KEY' is already in scope because it is declared in an enclosing type 4 154

Wren Security Commons Audit - Framework Core - org/forgerock/audit/util/DateUtil.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 186188

Wren Security Commons Audit - Framework Core - org/forgerock/audit/util/JsonValueUtils.java

Rule Violation Priority Line
UnnecessaryReturn Unnecessary return statement 3 303

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/CsvAuditEventHandler.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16612
DoubleCheckedLocking Double checked locking is not thread safe in Java. 1 306
UselessParentheses Useless parentheses. 4 540

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/CsvSecureMapReader.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 34

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/SecureCsvWriter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16435
SimplifiedTernary This conditional expression can be simplified with || or && 3 302

Wren Security Commons Audit - CSV Event Handler - org/forgerock/audit/handlers/csv/StandardCsvWriter.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 45
SimplifiedTernary This conditional expression can be simplified with || or && 3 116

Wren Security Commons Audit - Elasticsearch Event Handler - org/forgerock/audit/handlers/elasticsearch/ElasticsearchAuditEventHandler.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16528

Wren Security Commons Audit - Elasticsearch Event Handler - org/forgerock/audit/handlers/elasticsearch/ElasticsearchQueryFilterVisitor.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16280

Wren Security Commons Audit - JDBC Event Handler - org/forgerock/audit/handlers/jdbc/BufferedJdbcAuditEventExecutor.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'preparedStatement': resource specifications are implicitly final 3 192

Wren Security Commons Audit - JDBC Event Handler - org/forgerock/audit/handlers/jdbc/JdbcAuditEventExecutorImpl.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'preparedStatement': resource specifications are implicitly final 3 57

Wren Security Commons Audit - JDBC Event Handler - org/forgerock/audit/handlers/jdbc/StringSqlQueryFilterVisitor.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 68

Wren Security Commons Audit - JMS Event Handler - org/forgerock/audit/handlers/jms/JmsAuditEventHandler.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 254256

Wren Security Commons Audit - JSON Event Handler - org/forgerock/audit/handlers/json/JsonAuditEventHandler.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17226
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 136137
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 163164

Wren Security Commons Audit - JSON Event Handler - org/forgerock/audit/handlers/json/JsonFileWriter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18534
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Math': 'max' is already in scope 4 101

Wren Security Commons Audit - Splunk Event Handler - org/forgerock/audit/handlers/splunk/SplunkAuditEventHandler.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16249

Wren Security Commons Audit - Syslog Event Handler - org/forgerock/audit/handlers/syslog/SyslogFormatter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17326

Wren Security Commons Audit - JSON Support Library - org/forgerock/audit/json/AuditJsonConfig.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'EVENTS_FIELD'. 3 59

Wren Security Commons Audit - Servlet Example - org/forgerock/audit/AuditHttpApplication.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'eventHandlersConfig': resource specifications are implicitly final 3 70

Wren Security Commons Authn. - JASPI (JSR-196) Functional Tests - org/forgerock/caf/authn/test/runtime/GuiceModule.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18140
UnnecessaryImport Unused static import 'org.forgerock.caf.authentication.framework.AuthenticationFilter.AuthenticationModuleBuilder' 4 20

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/Base64.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 108
UselessParentheses Useless parentheses. 4 247
UselessParentheses Useless parentheses. 4 295
UselessParentheses Useless parentheses. 4 433
UselessParentheses Useless parentheses. 4 594

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/DerValue.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 119

Wren Security Commons Authn. - JASPI (JSR-196) IWA Module - org/forgerock/jaspi/modules/iwa/wdsso/WDSSO.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 368
CollapsibleIfStatements This if statement could be combined with its parent 3 370373
UselessParentheses Useless parentheses. 4 370

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/caf/http/SetCookieSupport.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 9294

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/jaspi/modules/session/jwt/AbstractJwtSessionModule.java

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 190
SimplifiedTernary This conditional expression can be simplified with || or && 3 192
SimplifiedTernary This conditional expression can be simplified with || or && 3 194
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 569

Wren Security Commons Authn. - JASPI (JSR-196) JWT Session Module - org/forgerock/jaspi/modules/session/jwt/JwtSessionModule.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 106
SimplifiedTernary This conditional expression can be simplified with || or && 3 175177

Wren Security Commons Authn. - JASPI (JSR-196) OpenAM Session Module - org/forgerock/jaspi/modules/session/openam/OpenAMSessionModule.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17462
UnusedPrivateField Avoid unused private fields such as 'MIME_TYPE_APPLICATION_JSON'. 3 82
UnusedPrivateField Avoid unused private fields such as 'CHARACTER_ENCODING'. 3 83
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 424

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/OpenIdConnectModule.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17272
UnnecessaryImport Unused import 'jakarta.security.auth.message.AuthException' 4 29
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'HEADER_KEY' is already in scope because it is declared in an enclosing type 4 140
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'READ_TIMEOUT_KEY' is already in scope because it is declared in an enclosing type 4 143
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'CONNECTION_TIMEOUT_KEY' is already in scope because it is declared in an enclosing type 4 144
UnnecessaryFullyQualifiedName Unnecessary qualifier 'OpenIdConnectModule': 'RESOLVERS_KEY' is already in scope because it is declared in an enclosing type 4 162

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/helpers/SimpleHTTPClient.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 91

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/BaseOpenIdResolver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 104

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/OpenIdResolver.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEY_ALIAS_KEY': the field is declared in an interface type 3 41
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ISSUER_KEY': the field is declared in an interface type 3 46
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'CLIENT_SECRET_KEY': the field is declared in an interface type 3 51
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'JWK': the field is declared in an interface type 3 56
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'WELL_KNOWN_CONFIGURATION': the field is declared in an interface type 3 61
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEYSTORE_LOCATION_KEY': the field is declared in an interface type 3 66
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEYSTORE_TYPE_KEY': the field is declared in an interface type 3 71
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'KEYSTORE_PASS_KEY': the field is declared in an interface type 3 76
UnnecessaryModifier Unnecessary modifier 'public' on method 'validateIdentity': the method is declared in an interface type 3 84
UnnecessaryModifier Unnecessary modifier 'public' on method 'getIssuer': the method is declared in an interface type 3 91

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverService.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getResolverForIssuer': the method is declared in an interface type 3 53
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithKey': the method is declared in an interface type 3 66
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithSecret': the method is declared in an interface type 3 78
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithJWK': the method is declared in an interface type 3 90
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureResolverWithWellKnownOpenIdConfiguration': the method is declared in an interface type 3 101

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverServiceConfigurator.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'configureService': the method is declared in an interface type 3 40

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverServiceConfiguratorImpl.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 116
UselessParentheses Useless parentheses. 4 117
UselessParentheses Useless parentheses. 4 118

Wren Security Commons Authn. - JASPI (JSR-196) OIDC Module - org/forgerock/jaspi/modules/openid/resolvers/service/OpenIdResolverServiceImpl.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'readTimeout'. 3 50
UnusedPrivateField Avoid unused private fields such as 'connTimeout'. 3 51

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/AggregateAuthContext.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 56

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/AuthenticationFramework.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 18275
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_CONTEXT' is already in scope because it is declared in an enclosing type 4 139
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_CONTEXT' is already in scope because it is declared in an enclosing type 4 168
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_PRINCIPAL' is already in scope because it is declared in an enclosing type 4 172
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_AUTH_CONTEXT' is already in scope because it is declared in an enclosing type 4 173
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthenticationFramework': 'ATTRIBUTE_REQUEST_ID' is already in scope because it is declared in an enclosing type 4 188

Wren Security Commons Authn. - JASPI (JSR-196) Runtime - org/forgerock/caf/authentication/framework/SessionAuthContext.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 42

Wren Security Commons Authz. - OAuth2 Filter Module - org/forgerock/authz/modules/oauth2/OAuth2CrestAuthorizationModule.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'securityContext'. 3 212

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/AtomicBloomFilter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 115

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BatchingBloomFilter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8094

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BloomFilterChain.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Math': 'max' is already in scope 4 146

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BloomFilterStatistics.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 106
UselessParentheses Useless parentheses. 4 138

Wren Security Commons Bloom Filters - Core - org/forgerock/bloomfilter/BloomFilters.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'NeverExpires': nested enums are implicitly static 3 49

Wren Security Commons Bloom Filters - Monitoring - org/forgerock/bloomfilter/monitoring/BloomFilterMonitor.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'SECONDS' is already in scope because it is imported in this file 4 187
CollapsibleIfStatements This if statement could be combined with its parent 3 300305

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/AbstractDocbkxMojo.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7880

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/PreProcessMojo.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 6163

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/post/NoOp.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'm'. 3 29

ForgeRock Doc Build Maven Plugin - org/forgerock/doc/maven/utils/PngUtils.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'absolutePath'. 3 79
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 259

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/Citation.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 312
UselessParentheses Useless parentheses. 4 322

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/Resolver.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 136

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/XCiteMojo.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8387

XCite Maven Plugin - org/forgerock/maven/plugins/xcite/utils/StringUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 411

Wren Security Guice Core - org/forgerock/guice/core/InjectorConfiguration.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'InjectorConfiguration()': enum constructors are implicitly private 3 62

Wren Security Guice Core - org/forgerock/guice/core/InjectorHolder.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'InjectorHolder()': enum constructors are implicitly private 3 53

Wren Security Guice Core - org/forgerock/guice/core/internal/commons/lang/reflect/ConstructorUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 79

Wren Security Guice Core - org/forgerock/guice/core/internal/commons/lang/reflect/MemberUtils.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5254
EmptyCatchBlock Avoid empty catch blocks 3 8587

Wren Security Commons HTTP - CHF Bindings Test Utilities - org/forgerock/http/bindings/BindingTest.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17396
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 3 176
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 3 196
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 3 223
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'handler': resource specifications are implicitly final 3 250
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'httpClientHandler': resource specifications are implicitly final 3 294

Wren Security Commons HTTP - JMH benchmarks - org/forgerock/http/serialization/JacksonJsonSerialization.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.openjdk.jmh.annotations.Fork' 4 33

Wren Security Commons HTTP - Apache Async HttpClient integration - org/forgerock/http/apache/async/AsyncHttpClientProvider.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17194

Wren Security Commons HTTP - Apache Async HttpClient integration - org/forgerock/http/apache/async/CloseableBufferFactory.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio': 'ByteBuffer' is already in scope because it is imported in this file 4 58

Wren Security Commons HTTP - Apache HttpClient integration - org/forgerock/http/apache/sync/SyncHttpClientProvider.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19126

Wren Security Commons HTTP - Client Test Utilities - org/forgerock/http/handler/HttpClientHandlerTest.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17163

Wren Security Commons HTTP - Core Library - org/forgerock/http/header/ContentLengthHeader.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5961

Wren Security Commons HTTP - Core Library - org/forgerock/http/header/HeaderUtil.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 218222

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/BranchingStreamWrapper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 88
EmptyCatchBlock Avoid empty catch blocks 3 199201

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/ByteArrayBranchingStream.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 61

Wren Security Commons HTTP - Core Library - org/forgerock/http/io/FileBuffer.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 122124

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Cookie.java

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 172
SimplifiedTernary This conditional expression can be simplified with || or && 3 221

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Entity.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17488

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Request.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8486

Wren Security Commons HTTP - Core Library - org/forgerock/http/protocol/Response.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 148

Wren Security Commons HTTP - Core Library - org/forgerock/http/routing/RouteMatchers.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 286288

Wren Security Commons HTTP - Core Library - org/forgerock/http/routing/UriRouteMatcher.java

Rule Violation Priority Line
EmptyControlStatement Empty else statement 3 217219

Wren Security Commons HTTP - Core Library - org/forgerock/http/spi/Loader.java

Rule Violation Priority Line
UnnecessarySemicolon Unnecessary semicolon 3 41

Wren Security Commons HTTP - Core Library - org/forgerock/http/swagger/SwaggerApiProducer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16257

Wren Security Commons HTTP - Core Library - org/forgerock/http/util/Json.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Json': 'PREFERRED_LOCALES_ATTRIBUTE' is already in scope because it is declared in an enclosing type 4 299

Wren Security Commons HTTP - Core Library - org/forgerock/http/util/Paths.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Paths': 'urlDecode' is already in scope 4 85

Wren Security Commons HTTP - Core Library - org/forgerock/http/util/Uris.java

Rule Violation Priority Line
JumbledIncrementer Avoid modifying an outer loop incrementer in an inner loop for update expression 3 411428

Wren Security Commons HTTP - Core Library - org/forgerock/services/routing/AbstractRouter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 269271

Wren Security Commons HTTP - OpenAPI Descriptor Example Module - org/forgerock/http/example/DescribedOauth2Endpoint.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17233

Wren Security Commons HTTP - Grizzly Integration Library - org/forgerock/http/grizzly/HandlerAdapter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16218

Wren Security Commons HTTP - OAuth 2.0 Resource Server Support - org/forgerock/http/oauth2/resolver/OpenAmAccessTokenResolver.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17226

Wren Security Commons HTTP - Servlet integration library - org/forgerock/http/servlet/HttpFrameworkServlet.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17374

Wren Security I18N Core - org/forgerock/i18n/LocalizableMessage.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'LocalizableMessage': 'raw' is already in scope 4 61

Wren Security I18N Maven Plugin - org/forgerock/i18n/maven/AbstractGenerateMessagesMojo.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 223225
UselessParentheses Useless parentheses. 4 396
CollapsibleIfStatements This if statement could be combined with its parent 3 647651
EmptyCatchBlock Avoid empty catch blocks 3 747749
EmptyCatchBlock Avoid empty catch blocks 3 755757

Wren Security I18N Maven Plugin - org/forgerock/i18n/maven/CleanMessagesMojo.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 347
CollapsibleIfStatements This if statement could be combined with its parent 3 358361

Wren Security I18N SLF4J Support - org/forgerock/i18n/slf4j/LocalizedLogger.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 4795

Wren Security Commons JSON Crypto - Core Library - org/forgerock/json/crypto/JsonCrypto.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17159

Wren Security Commons JSON Crypto - Core Library - org/forgerock/json/crypto/simple/SimpleDecryptor.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 116

Wren Security Commons JSON Crypto - Core Library - org/forgerock/json/crypto/simple/SimpleEncryptor.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 167

Wren Security Commons JSON Schema - Draft-04 Validator CLI - org/forgerock/json/schema/Main.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 169
UselessParentheses Useless parentheses. 4 169

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/helpers/FormatHelper.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'format'. 3 40

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/helpers/MaximumHelper.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8486

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/helpers/MinimumHelper.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8587

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/ArrayTypeValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 160
UselessParentheses Useless parentheses. 4 163

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/BooleanTypeValidator.java

Rule Violation Priority Line
UnnecessaryReturn Unnecessary return statement 3 58

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/IntegerTypeValidator.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 116118

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/NumberTypeValidator.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 117119

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 153
EmptyCatchBlock Avoid empty catch blocks 3 173176
EmptyControlStatement Empty if statement 3 195203
CollapsibleIfStatements This if statement could be combined with its parent 3 229240

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/SimpleValidator.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'validate': the method is declared in an interface type 3 41

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/StringTypeValidator.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 110112
CollapsibleIfStatements This if statement could be combined with its parent 3 133135

Wren Security Commons JSON Schema - Draft-04 Validator - org/forgerock/json/schema/validator/validators/UnionTypeValidator.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8385

Wren Security Commons JWT - org/forgerock/json/jose/jwe/EncryptionMethod.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'EncryptionMethod': 'values' is already in scope 4 154

Wren Security Commons JWT - org/forgerock/json/jose/jwe/JweAlgorithm.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JweAlgorithm': 'values' is already in scope 4 90

Wren Security Commons JWT - org/forgerock/json/jose/jwe/JweAlgorithmType.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 40

Wren Security Commons JWT - org/forgerock/json/jose/jwe/handlers/encryption/AbstractRSAESPkcs1V15AesCbcHmacEncryptionHandler.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'signingManager'. 3 46

Wren Security Commons JWT - org/forgerock/json/jose/jwe/handlers/encryption/RSAEncryptionHandler.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17164

Wren Security Commons JWT - org/forgerock/json/jose/jwk/KeyType.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'KeyType(String)': enum constructors are implicitly private 3 49

Wren Security Commons JWT - org/forgerock/json/jose/jwk/KeyUse.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'KeyUse()': enum constructors are implicitly private 3 38

Wren Security Commons JWT - org/forgerock/json/jose/jws/JwsAlgorithm.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JwsAlgorithm': 'values' is already in scope 4 138
UselessOverridingMethod Overriding method merely calls super 3 152

Wren Security Commons JWT - org/forgerock/json/jose/jws/JwtSecureHeader.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17409

Wren Security Commons JWT - org/forgerock/json/jose/utils/DerUtils.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 5759
UselessParentheses Useless parentheses. 4 61

Wren Security Commons - API Descriptor - org/forgerock/api/CrestApiProducer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17158

Wren Security Commons - API Descriptor - org/forgerock/api/commons/CommonsApi.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'Errors(int, String)': enum constructors are implicitly private 3 176

Wren Security Commons - API Descriptor - org/forgerock/api/jackson/CrestPropertyDetailsSchemaFactoryWrapper.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 141

Wren Security Commons - API Descriptor - org/forgerock/api/jackson/CrestStringSchema.java

Rule Violation Priority Line
UnnecessaryReturn Unnecessary return statement 3 188

Wren Security Commons - API Descriptor - org/forgerock/api/markup/ApiDocGenerator.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 181130

Wren Security Commons - API Descriptor - org/forgerock/api/markup/asciidoc/AsciiDoc.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17623
UnusedLocalVariable Avoid unused local variables such as 'symbol'. 3 283

Wren Security Commons - API Descriptor - org/forgerock/api/models/Action.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'action': the method is already in a final class 3 117

Wren Security Commons - API Descriptor - org/forgerock/api/models/ApiDescription.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16340

Wren Security Commons - API Descriptor - org/forgerock/api/models/Create.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'create': the method is already in a final class 3 77

Wren Security Commons - API Descriptor - org/forgerock/api/models/Delete.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'delete': the method is already in a final class 3 41

Wren Security Commons - API Descriptor - org/forgerock/api/models/Patch.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'patch': the method is already in a final class 3 85

Wren Security Commons - API Descriptor - org/forgerock/api/models/Read.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'read': the method is already in a final class 3 41

Wren Security Commons - API Descriptor - org/forgerock/api/models/Update.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'update': the method is already in a final class 3 41

Wren Security Commons - API Descriptor - org/forgerock/api/transform/OpenApiTransformer.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 171858

Wren Security Commons - API Descriptor - org/forgerock/api/util/ValidationUtil.java

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 91

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/examples/DynamicRealmDemo.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17212

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/examples/ReadModifyWriteDemo.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'server': resource specifications are implicitly final 3 47
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'connection': resource specifications are implicitly final 3 48

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/examples/VersionedResourcesDemo.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17203

Wren Security Commons REST - JSON Resource Examples - org/forgerock/json/resource/http/examples/CrestHttpApplication.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17180

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/CrestAdapter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17478

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/HttpAdapter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16936
EmptyControlStatement Empty if statement 3 548552
EmptyControlStatement Empty if statement 3 621625
CollapsibleIfStatements This if statement could be combined with its parent 3 691693

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/HttpUtils.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17964
EmptyCatchBlock Avoid empty catch blocks 3 588591
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HttpUtils': 'METHOD_POST' is already in scope because it is declared in an enclosing type 4 639
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HttpUtils': 'HEADER_X_HTTP_METHOD_OVERRIDE' is already in scope because it is declared in an enclosing type 4 640
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HttpUtils': 'HEADER_X_HTTP_METHOD_OVERRIDE' is already in scope because it is declared in an enclosing type 4 641

Wren Security Commons REST - JSON Resource HTTP Binding - org/forgerock/json/resource/http/RequestRunner.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17550
UselessParentheses Useless parentheses. 4 125127
UnnecessaryModifier Unnecessary modifier 'final' on method 'handleError': the method is already in a final class 3 130
UnnecessaryModifier Unnecessary modifier 'final' on method 'handleResult': the method is already in a final class 3 137
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitActionRequest': the method is already in a final class 3 148
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitCreateRequest': the method is already in a final class 3 182
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitDeleteRequest': the method is already in a final class 3 229
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitPatchRequest': the method is already in a final class 3 244
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitQueryRequest': the method is already in a final class 3 259
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitReadRequest': the method is already in a final class 3 339
UnnecessaryModifier Unnecessary modifier 'final' on method 'visitUpdateRequest': the method is already in a final class 3 354
UnusedFormalParameter Avoid unused method parameters such as 'e'. 3 369

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/AdviceWarning.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AdviceWarning': 'newBuilder' is already in scope 4 110
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AdviceWarning': 'newBuilder' is already in scope 4 126

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/DescribableResourceHandler.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'api': the method is already in a final class 3 63

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/MemoryBackend.java

Rule Violation Priority Line
EmptyControlStatement Empty else statement 3 454456

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/Requests.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'addSortKey': the method is already in a final class 3 460

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/Resources.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17556

Wren Security Commons REST - JSON Resource Core Library - org/forgerock/json/resource/Router.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17453

Wren Security Commons JSON Patch - Library - org/forgerock/security/keystore/KeystoreManagerException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'cause'. 3 48

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/AnonymousProcessService.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17315

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/ProcessContextImpl.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17238

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/UserUpdateService.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 16170

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/config/ClassNameFallbackPropertyTypeResolver.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'com.fasterxml.jackson.databind.ObjectMapper' 4 23
UnnecessaryImport Unused import 'com.fasterxml.jackson.databind.json.JsonMapper' 4 25

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/crypto/FieldStorageScheme.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'hashField': the method is declared in an interface type 3 31
UnnecessaryModifier Unnecessary modifier 'public' on method 'fieldMatches': the method is declared in an interface type 3 41

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/util/Answers.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 71

Wren Security Commons Self Service - Core - org/forgerock/selfservice/core/util/RequirementsBuilder.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 229231

Wren Security Commons Self Service - Examples - org/forgerock/selfservice/example/ExampleEmailService.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17161

Wren Security Commons Self Service - Stages - org/forgerock/selfservice/stages/email/VerifyEmailAccountStage.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17197

Wren Security Commons Self Service - Stages - org/forgerock/selfservice/stages/kba/SecurityAnswerDefinitionStage.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17147

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/JsonPatch.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JsonPatch': 'VALUE_PTR' is already in scope because it is declared in an enclosing type 4 68
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JsonPatch': 'VALUE_PTR' is already in scope because it is declared in an enclosing type 4 69

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/JsonValue.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 193
UselessParentheses Useless parentheses. 4 379
UselessParentheses Useless parentheses. 4 379
UselessParentheses Useless parentheses. 4 392
UselessParentheses Useless parentheses. 4 405
UselessParentheses Useless parentheses. 4 540
UselessParentheses Useless parentheses. 4 553
UselessParentheses Useless parentheses. 4 553
UselessParentheses Useless parentheses. 4 639
UselessParentheses Useless parentheses. 4 639
UselessParentheses Useless parentheses. 4 651
UselessParentheses Useless parentheses. 4 651
UselessParentheses Useless parentheses. 4 746
UselessParentheses Useless parentheses. 4 859
UselessParentheses Useless parentheses. 4 888
UselessParentheses Useless parentheses. 4 897
UselessParentheses Useless parentheses. 4 906
UselessParentheses Useless parentheses. 4 915
UselessParentheses Useless parentheses. 4 933
UselessParentheses Useless parentheses. 4 942
EmptyCatchBlock Avoid empty catch blocks 3 10191021

Wren Security Commons Utility Classes - Utility Library - org/forgerock/json/RangeSet.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 104106

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/LazyList.java

Rule Violation Priority Line
DoubleCheckedLocking Double checked locking is not thread safe in Java. 1 61

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/LazyMap.java

Rule Violation Priority Line
DoubleCheckedLocking Double checked locking is not thread safe in Java. 1 62

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/Pair.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Pair': 'of' is already in scope 4 49

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/RangeSet.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 90
UselessParentheses Useless parentheses. 4 91
UselessParentheses Useless parentheses. 4 93
UselessParentheses Useless parentheses. 4 101

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/SimpleHTTPClient.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 96

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/i18n/LocalizableString.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 98100

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/query/QueryFilter.java

Rule Violation Priority Line
OverrideBothEqualsAndHashcode Ensure you override both equals() and hashCode() 3 221
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'equalTo' is already in scope 4 556
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'greaterThan' is already in scope 4 558
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'greaterThanOrEqualTo' is already in scope 4 560
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'lessThan' is already in scope 4 562
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'lessThanOrEqualTo' is already in scope 4 564
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'contains' is already in scope 4 566
UnnecessaryFullyQualifiedName Unnecessary qualifier 'QueryFilter': 'startsWith' is already in scope 4 568

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/query/QueryFilterParser.java

Rule Violation Priority Line
EmptyControlStatement Empty for statement 3 382384

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/thread/listener/ShutdownListener.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'shutdown': the method is declared in an interface type 3 28

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/thread/listener/ShutdownPriority.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'ShutdownPriority(int)': enum constructors are implicitly private 3 50

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/time/Duration.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17415
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TimeUnit': 'DAYS' is already in scope because it is imported in this file 4 276

Wren Security Commons Utility Classes - Utility Library - org/forgerock/util/xml/XMLUtils.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 91
EmptyCatchBlock Avoid empty catch blocks 3 122