Skip to content

removed azurite from code and added as external depedency #275

removed azurite from code and added as external depedency

removed azurite from code and added as external depedency #275

Triggered via pull request February 19, 2026 10:29
Status Success
Total duration 17s
Artifacts 1

code-analysis.yml

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

Annotations

1 warning
Avoid catching RuntimeException in try-catch block: src/main/java/uk/gov/hmcts/cp/cdk/batch/BatchConfig.java#L198
Avoid catching generic exceptions in try-catch blocks. Catching overly broad exception types makes it difficult to understand what can actually go wrong in your code and can hide real problems. **Why these exceptions should not be caught:** * **Exception**: This is the base class for all checked exceptions. Catching it means you're handling all possible checked exceptions the same way, which is rarely appropriate and makes error handling less precise. * **RuntimeException**: These represent programming errors (like logic bugs) that should typically be fixed in code rather than caught and handled. Catching them can hide bugs that should be addressed during development. * **NullPointerException**: This usually indicates a programming error (accessing null references). Rather than catching it, code should be written to avoid null pointer dereferences through null checks or defensive programming. * **Throwable**: This is the superclass of all errors and exceptions. Catching it means you're trying to handle both recoverable exceptions and serious errors (like OutOfMemoryError) the same way, which is dangerous. * **Error**: These represent serious problems that applications should not try to handle (like OutOfMemoryError, StackOverflowError). Catching Error can prevent the JVM from properly terminating when it encounters unrecoverable situations. **Better approaches:** - Catch specific exception types that you can meaningfully handle - Use multiple catch blocks for different exception types that require different handling - Consider using defensive programming techniques to prevent exceptions rather than catching them AvoidCatchingGenericException (Priority: 3, Ruleset: Error Prone) https://docs.pmd-code.org/snapshot/pmd_rules_java_errorprone.html#avoidcatchinggenericexception

Artifacts

Produced during runtime
Name Size Digest
PMD Report
1.34 KB
sha256:b400052f813fa0921871514c04c22f087338d099c98e7179c38319c7217aede8