gnodet-bot commented on code in PR #28182:
URL: https://github.com/apache/camel/pull/28182#discussion_r4326618276


##########
catalog/camel-route-parser/src/main/java/org/apache/camel/parser/model/CoverageData.java:
##########
@@ -61,4 +65,28 @@ public int getLineNumber() {
     public void setLineNumber(int lineNumber) {
         this.lineNumber = lineNumber;
     }
+
+    /**
+     * The body types the node has been reached with, in the order first seen 
(empty when the route coverage dump has
+     * none, as when the tests ran without the message history).
+     */
+    public List<String> getBodyTypes() {
+        return bodyTypes;
+    }
+
+    public void setBodyTypes(List<String> bodyTypes) {
+        this.bodyTypes = bodyTypes != null ? bodyTypes : List.of();
+    }
+
+    /**
+     * The kinds of the bodies the node has been reached with: null, payload, 
data or iterator. More than one means the

Review Comment:
   💡 Stale Javadoc: the kind was renamed from `iterator` to `collection` in 
companion commit d71c2897. The rest of this PR and the .adoc docs already say 
`collection`.
   
   ```suggestion
        * The kinds of the bodies the node has been reached with: null, 
payload, data or collection. More than one means the
   ```



##########
catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/model/RouteCoverageNode.java:
##########
@@ -74,6 +78,28 @@ public void setLevel(int level) {
         this.level = level;
     }
 
+    /**
+     * The body types the node has been reached with, from the route coverage 
dump.
+     */
+    public List<String> getBodyTypes() {
+        return bodyTypes;
+    }
+
+    public void setBodyTypes(List<String> bodyTypes) {
+        this.bodyTypes = bodyTypes != null ? bodyTypes : List.of();
+    }
+
+    /**
+     * The kinds of the bodies the node has been reached with: null, payload, 
data or iterator.

Review Comment:
   💡 Same stale Javadoc — `iterator` → `collection`.
   
   ```suggestion
        * The kinds of the bodies the node has been reached with: null, 
payload, data or collection.
   ```



-- 
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