Skip to content

PMD - pull_request #246

PMD - pull_request

PMD - pull_request #246

Re-run triggered July 11, 2025 11:03
Status Success
Total duration 24s
Artifacts 1

check-pmd.yml

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

Annotations

2 errors and 2 warnings
Document empty constructor: examples/powertools-examples-serialization/sam/src/main/java/org/demo/serialization/Product.java#L22
Uncommented Empty Constructor finds instances where a constructor does not contain statements, but there is no comment. By explicitly commenting empty constructors it is easier to distinguish between intentional (commented) and unintentional empty constructors. UncommentedEmptyConstructor (Priority: 1, Ruleset: Documentation) https://docs.pmd-code.org/snapshot/pmd_rules_java_documentation.html#uncommentedemptyconstructor
Explicit type arguments can be replaced by a diamond: `new HashMap<>()`: examples/powertools-examples-serialization/sam/src/main/java/org/demo/serialization/APIGatewayRequestDeserializationFunction.java#L33
In some cases, explicit type arguments in a constructor call for a generic type may be replaced by diamond type arguments (`<>`), and be inferred by the compiler. This rule recommends that you use diamond type arguments anywhere possible, since it avoids duplication of the type arguments, and makes the code more concise and readable. This rule is useful when upgrading a codebase to Java 1.7, Java 1.8, or Java 9. The diamond syntax was first introduced in Java 1.7. In Java 8, improvements in Java's type inference made more type arguments redundant. In Java 9, type arguments inference was made possible for anonymous class constructors. UseDiamondOperator (Priority: 1, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#usediamondoperator
pmd_analyse
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
pmd_analyse
Cache not found for keys: setup-java-Linux-x64-maven-802c84a06573ed30a7efadac36842fb4e770dcf83fbce63ad4832203793bb683

Artifacts

Produced during runtime
Name Size Digest
PMD Report Expired
1.21 KB
sha256:3dbe8d50d8afc3f0d0e538f82b877b28362ab75e122e0173944eda50519dfa1c