Skip to content

Dev/mapper service addition #52

Dev/mapper service addition

Dev/mapper service addition #52

Triggered via pull request July 16, 2025 15:59
Status Success
Total duration 20s
Artifacts 1

code-analysis.yml

on: pull_request
pmd-analysis
15s
pmd-analysis
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
Final parameter in abstract method: src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L22
Declaring a method parameter as final for an interface method is useless because the implementation may choose to not respect it. FinalParameterInAbstractMethod (Priority: 1, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#finalparameterinabstractmethod
Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent.: src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L21
Reports functional interfaces that were not explicitly declared as such with the annotation `@FunctionalInterface`. If an interface is accidentally a functional interface, then it should bear a `@SuppressWarnings("PMD.ImplicitFunctionalInterface")` annotation to make this clear. ImplicitFunctionalInterface (Priority: 2, Ruleset: Best Practices) https://docs.pmd-code.org/snapshot/pmd_rules_java_bestpractices.html#implicitfunctionalinterface
Unused import 'org.springframework.http.ResponseEntity': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L12
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.springframework.http.MediaType': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L11
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.springframework.http.HttpMethod': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L10
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.springframework.http.HttpHeaders': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L9
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.springframework.http.HttpEntity': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L8
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.springframework.beans.factory.annotation.Value': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L7
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.slf4j.LoggerFactory': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L6
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.slf4j.Logger': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L5
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'org.apache.logging.log4j.util.Strings': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L4
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport
Unused import 'lombok.RequiredArgsConstructor': src/main/java/uk/gov/hmcts/cp/services/CaseUrnMapperService.java#L3
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport

Artifacts

Produced during runtime
Name Size Digest
PMD Report Expired
2.6 KB
sha256:c4c2628516f1a7885fa9167281daeb19309deb3e9739338835560471a46dff5d