Skip to content

PMD - pull_request #1164

PMD - pull_request

PMD - pull_request #1164

Re-run triggered February 3, 2026 14:09
Status Success
Total duration 28s
Artifacts 1

check-pmd.yml

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

Annotations

1 error
Perhaps 'key' could be replaced by a local variable.: powertools-idempotency/powertools-idempotency-dynamodb/src/test/java/software/amazon/lambda/powertools/idempotency/persistence/dynamodb/DynamoDBPersistenceStoreTest.java#L58
Reports fields which may be converted to a local variable. This is so because in every method where the field is used, it is assigned before it is first read. Hence, the value that the field had before the method call may not be observed, so it might as well not be stored in the enclosing object. Limitations: * We can only check private fields for now. * The rule is not aware of threading, so it may cause false positives in concurrent code. Such FPs are best handled by suppression (see also the `ignoredAnnotations` property). SingularField (Priority: 1, Ruleset: Design) https://docs.pmd-code.org/snapshot/pmd_rules_java_design.html#singularfield

Artifacts

Produced during runtime
Name Size Digest
PMD Report
994 Bytes
sha256:4cd150465e2fb8212b180c0b2c1a665eb54ee092b2291ec81ade0740642b252b