slachiewicz commented on code in PR #788:
URL: https://github.com/apache/maven-pmd-plugin/pull/788#discussion_r4630993211


##########
src/main/java/org/apache/maven/plugins/pmd/PmdReport.java:
##########
@@ -83,10 +83,25 @@ public class PmdReport extends AbstractPmdReport {
      * <p>
      *   <b>Note:</b> this parameter is only used if the language parameter is 
set to <code>java</code>.
      * </p>
+     * <p>If not set, the value of {@code maven.compiler.release} is used, or 
{@code maven.compiler.source} when no
+     * release is set, as the Maven Compiler Plugin does.</p>
      */
-    @Parameter(property = "targetJdk", defaultValue = 
"${maven.compiler.source}")
+    @Parameter(property = "targetJdk")
     private String targetJdk;
 
+    /**
+     * The {@code maven.compiler.release} property, used when {@link 
#targetJdk} is not set.
+     */
+    @Parameter(defaultValue = "${maven.compiler.release}", readonly = true)

Review Comment:
   Read-only annotation is only for plexusl to validate but I don't know if pmd 
report will exclude it from generation. Can you check?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to