Skip to content

PMD - pull_request #791

PMD - pull_request

PMD - pull_request #791

Re-run triggered October 16, 2025 08:58
Status Success
Total duration 25s
Artifacts 1

check-pmd.yml

on: pull_request
pmd_analyse
17s
pmd_analyse
Fit to window
Zoom out
Zoom in

Annotations

1 error
Ensure that resources like this InputStream object are closed after use: powertools-kafka/src/test/java/software/amazon/lambda/powertools/kafka/PowertoolsSerializerTest.java#L173
Ensure that resources (like `java.sql.Connection`, `java.sql.Statement`, and `java.sql.ResultSet` objects and any subtype of `java.lang.AutoCloseable`) are always closed after use. Failing to do so might result in resource leaks. Note: It suffices to configure the super type, e.g. `java.lang.AutoCloseable`, so that this rule automatically triggers on any subtype (e.g. `java.io.FileInputStream`). Additionally specifying `java.sql.Connection` helps in detecting the types, if the type resolution / auxclasspath is not correctly setup. Note: Since PMD 6.16.0 the default value for the property `types` contains `java.lang.AutoCloseable` and detects now cases where the standard `java.io.*Stream` classes are involved. In order to restore the old behaviour, just remove "AutoCloseable" from the types. CloseResource (Priority: 1, Ruleset: Error Prone) https://docs.pmd-code.org/snapshot/pmd_rules_java_errorprone.html#closeresource

Artifacts

Produced during runtime
Name Size Digest
PMD Report
1.05 KB
sha256:85db02dfabb4487679d62c2a1182aceadf121ae7949b4719975d85fe7d2e63d9