PMD Results

The following document contains the results of PMD 7.27.0.

Violations By Priority

Priority 4

org/tailormap/api/configuration/JdbcSessionConfiguration.java

Rule Violation Line
UselessParentheses Useless parentheses around `logger.isDebugEnabled() || logger.isTraceEnabled()`. 77
UselessParentheses Useless parentheses around `logger.isDebugEnabled() || logger.isTraceEnabled()`. 78

org/tailormap/api/controller/LayerExtractController.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ExtractOutputFormat': 'values' is already in scope 311

org/tailormap/api/controller/admin/SolrAdminController.java

Rule Violation Line
UselessParentheses Useless parentheses around `null == searchIndex.getLastIndexed() || searchI...`. 203
UselessParentheses Useless parentheses around `null != searchIndex.getSchedule() && null != se...`. 205–206
UselessParentheses Useless parentheses around `createNewIndex ? "creation of a new" : "update of"`. 230

org/tailormap/api/controller/admin/TaskAdminController.java

Rule Violation Line
UselessParentheses Useless parentheses around `null == type ? "all" : type`. 107
UselessParentheses Useless parentheses around `null == type ? GroupMatcher.anyGroup() : GroupM...`. 111
UselessParentheses Useless parentheses around `(CronTrigger) trigger`. 207
UselessParentheses Useless parentheses around `succes ? "succeeded" : "failed"`. 376

org/tailormap/api/drawing/DrawingService.java

Rule Violation Line
UselessParentheses Useless parentheses around `authentication instanceof AnonymousAuthenticati...`. 415

org/tailormap/api/geotools/featuresources/AttachmentsHelper.java

Rule Violation Line
UselessParentheses Useless parentheses around `attachmentAttributeType.getAttributeName() == n...`. 159–160
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AttachmentsHelper': 'fidFromPK' is already in scope 676

org/tailormap/api/persistence/User.java

Rule Violation Line
UselessParentheses Useless parentheses around `8 + 60`. 57

org/tailormap/api/persistence/helper/ApplicationHelper.java

Rule Violation Line
UselessParentheses Useless parentheses around `n.getChildrenIds() != null && n.getChildrenIds(...`. 300–301
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toSet' is already in scope 464

org/tailormap/api/repository/events/SearchIndexEventHandler.java

Rule Violation Line
UselessParentheses Useless parentheses around `succes ? "succeeded" : "failed"`. 71

org/tailormap/api/scheduling/IndexTask.java

Rule Violation Line
UselessParentheses Useless parentheses around `1 + (int) context.getMergedJobDataMap().getOrDe...`. 123

org/tailormap/api/scheduling/TaskType.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TaskType': 'values' is already in scope 20

org/tailormap/api/security/AuthorisationService.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 82
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 87
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 97
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 106
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 111
UselessParentheses Useless parentheses around `allowed ? "allowed" : "denied"`. 246
UselessParentheses Useless parentheses around `allowed ? "allowed" : "denied"`. 254

org/tailormap/api/service/CreateLayerExtractService.java

Rule Violation Line
UselessParentheses Useless parentheses around `processed / (double) featCount`. 311
UselessParentheses Useless parentheses around `featsAdded.doubleValue() / featCount`. 397
UselessParentheses Useless parentheses around `processed / (double) featCount`. 563

org/tailormap/api/solr/SolrHelper.java

Rule Violation Line
UselessParentheses Useless parentheses around `indexCounter - indexSkippedCounter`. 374
UselessParentheses Useless parentheses around `indexCounter - indexSkippedCounter`. 386

Files

org/tailormap/api/configuration/JdbcSessionConfiguration.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `logger.isDebugEnabled() || logger.isTraceEnabled()`. 4 77
UselessParentheses Useless parentheses around `logger.isDebugEnabled() || logger.isTraceEnabled()`. 4 78

org/tailormap/api/controller/LayerExtractController.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ExtractOutputFormat': 'values' is already in scope 4 311

org/tailormap/api/controller/admin/SolrAdminController.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `null == searchIndex.getLastIndexed() || searchI...`. 4 203
UselessParentheses Useless parentheses around `null != searchIndex.getSchedule() && null != se...`. 4 205–206
UselessParentheses Useless parentheses around `createNewIndex ? "creation of a new" : "update of"`. 4 230

org/tailormap/api/controller/admin/TaskAdminController.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `null == type ? "all" : type`. 4 107
UselessParentheses Useless parentheses around `null == type ? GroupMatcher.anyGroup() : GroupM...`. 4 111
UselessParentheses Useless parentheses around `(CronTrigger) trigger`. 4 207
UselessParentheses Useless parentheses around `succes ? "succeeded" : "failed"`. 4 376

org/tailormap/api/drawing/DrawingService.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `authentication instanceof AnonymousAuthenticati...`. 4 415

org/tailormap/api/geotools/featuresources/AttachmentsHelper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `attachmentAttributeType.getAttributeName() == n...`. 4 159–160
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AttachmentsHelper': 'fidFromPK' is already in scope 4 676

org/tailormap/api/persistence/User.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `8 + 60`. 4 57

org/tailormap/api/persistence/helper/ApplicationHelper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `n.getChildrenIds() != null && n.getChildrenIds(...`. 4 300–301
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toSet' is already in scope 4 464

org/tailormap/api/repository/events/SearchIndexEventHandler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `succes ? "succeeded" : "failed"`. 4 71

org/tailormap/api/scheduling/IndexTask.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `1 + (int) context.getMergedJobDataMap().getOrDe...`. 4 123

org/tailormap/api/scheduling/TaskType.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'TaskType': 'values' is already in scope 4 20

org/tailormap/api/security/AuthorisationService.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 4 82
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 4 87
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 4 97
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 4 106
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AuthorisationService': 'ACCESS_TYPE_VIEW' is already in scope because it is declared in an enclosing type 4 111
UselessParentheses Useless parentheses around `allowed ? "allowed" : "denied"`. 4 246
UselessParentheses Useless parentheses around `allowed ? "allowed" : "denied"`. 4 254

org/tailormap/api/service/CreateLayerExtractService.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `processed / (double) featCount`. 4 311
UselessParentheses Useless parentheses around `featsAdded.doubleValue() / featCount`. 4 397
UselessParentheses Useless parentheses around `processed / (double) featCount`. 4 563

org/tailormap/api/solr/SolrHelper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `indexCounter - indexSkippedCounter`. 4 374
UselessParentheses Useless parentheses around `indexCounter - indexSkippedCounter`. 4 386

Suppressed Violations

Filename Rule message Suppression type Reason
org/tailormap/api/configuration/dev/PopulateTestData.java Do not hard code the IP address '127.0.0.1' @suppresswarnings
org/tailormap/api/configuration/dev/PopulateTestData.java Do not hard code the IP address '127.0.0.1' @suppresswarnings
org/tailormap/api/configuration/dev/PopulateTestData.java Do not hard code the IP address '127.0.0.1' @suppresswarnings
org/tailormap/api/configuration/dev/PopulateTestData.java Do not hard code the IP address '127.0.0.1' @suppresswarnings
org/tailormap/api/configuration/dev/PopulateTestData.java Do not hard code the IP address '127.0.0.1' @suppresswarnings
org/tailormap/api/geotools/FilterUtil.java Use FilterUtil.parseFilter instead of ECQL.toFilter @suppresswarnings
org/tailormap/api/geotools/featuresources/FeatureSourceStatistics.java Use FilterUtil.parseFilter instead of ECQL.toFilter //nopmd - admin usage does not have application context
org/tailormap/api/persistence/Group.java Avoid unused private methods such as 'removeMembers()'. @suppresswarnings
org/tailormap/api/persistence/helper/UniqueValuesHelper.java Use FilterUtil.parseFilter instead of ECQL.toFilter //nopmd - admin usage does not have application context