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


##########
components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkCamelConfiguration.java:
##########
@@ -58,9 +58,9 @@ public class RobotFrameworkCamelConfiguration implements 
Cloneable {
                             + "--skiponfailure): a test case that has one of 
these tags is marked as skipped instead "
                             + "of failed when it fails. Separate several tags 
with comma.")
     private String nonCriticalTags;
-    @UriParam(description = "Passed as the robot --runmode option, which the 
Robot Framework version of this "
-                            + "component (4.1.2) no longer has: setting it 
makes the run fail with return code 252. "
-                            + "Use dryrun, exitOnFailure, skipTeardownOnExit 
and randomize instead.")
+    @UriParam(description = "Deprecated: the robot --runmode option was 
removed in Robot Framework 2.8. "
+                            + "Use dryrun, exitOnFailure, skipTeardownOnExit 
and randomize instead. "
+                            + "This option is ignored.")
     private String runMode;

Review Comment:
   ⚠️ **Missing `deprecated = true`**: The description says this option is 
deprecated/ignored, but the annotation still defaults to `deprecated = false`. 
The catalog JSON in this diff shows `"deprecated": false` unchanged, so the 
tooling won't surface any deprecation warning to users.
   
   ```suggestion
       @UriParam(deprecated = true,
                 description = "Deprecated: the robot --runmode option was 
removed in Robot Framework 2.8. "
                               + "Use dryrun, exitOnFailure, skipTeardownOnExit 
and randomize instead. "
                               + "This option is ignored.")
       private String runMode;
   ```



##########
components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkCamelConfiguration.java:
##########
@@ -116,17 +114,17 @@ public class RobotFrameworkCamelConfiguration implements 
Cloneable {
     @UriParam(description = "Whether to add a timestamp in the format 
YYYYMMDD-hhmmss to the names of all output "
                             + "files, between the base name and the extension 
(the robot --timestampoutputs option).")
     private boolean timestampOutputs;

Review Comment:
   ⚠️ Same: `deprecated = true` missing on `splitOutputs`.
   
   ```suggestion
       @UriParam(deprecated = true,
                 description = "Deprecated: the robot --splitoutputs option was 
removed in Robot Framework 3.0. "
                               + "This option is ignored.")
       private String splitOutputs;
   ```



##########
components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkCamelConfiguration.java:
##########
@@ -116,17 +114,17 @@ public class RobotFrameworkCamelConfiguration implements 
Cloneable {
     @UriParam(description = "Whether to add a timestamp in the format 
YYYYMMDD-hhmmss to the names of all output "
                             + "files, between the base name and the extension 
(the robot --timestampoutputs option).")
     private boolean timestampOutputs;
-    @UriParam(description = "Passed as the robot --splitoutputs option, which 
the Robot Framework version of this "
-                            + "component (4.1.2) does not have: setting it 
makes the run fail with return code 252.")
+    @UriParam(description = "Deprecated: the robot --splitoutputs option was 
removed in Robot Framework 3.0. "
+                            + "This option is ignored.")
     private String splitOutputs;
     @UriParam(description = "The title of the HTML log file (the robot 
--logtitle option). By default the suite name "
                             + "followed by Test Log.")
     private String logTitle;
     @UriParam(description = "The title of the HTML report file (the robot 
--reporttitle option). By default the suite "
                             + "name followed by Test Report.")
     private String reportTitle;

Review Comment:
   ⚠️ Same: `deprecated = true` missing on `summaryTitle`.
   
   ```suggestion
       @UriParam(deprecated = true,
                 description = "Deprecated: the robot --summarytitle option was 
removed in Robot Framework 3.0. "
                               + "This option is ignored.")
       private String summaryTitle;
   ```



##########
components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkCamelConfiguration.java:
##########
@@ -167,18 +165,15 @@ public class RobotFrameworkCamelConfiguration implements 
Cloneable {
                             + "option), as a class name or the path of a 
listener file, with arguments after the name "
                             + "separated with colon. Use listeners for 
several.")
     private String listener;
-    @UriParam(description = "Passed as the robot --warnonskippedfiles option, 
which the Robot Framework version of "
-                            + "this component (4.1.2) does not have: enabling 
it makes the run fail with return code "
-                            + "252.")
+    @UriParam(description = "Deprecated: the robot --warnonskippedfiles option 
was removed in Robot Framework 3.0. "
+                            + "This option is ignored.")

Review Comment:
   ⚠️ Same: `deprecated = true` missing on `warnOnSkippedFiles`.
   
   ```suggestion
       @UriParam(deprecated = true,
                 description = "Deprecated: the robot --warnonskippedfiles 
option was removed in Robot Framework 3.0. "
                               + "This option is ignored.")
       private boolean warnOnSkippedFiles;
   ```



##########
components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkCamelConfiguration.java:
##########
@@ -167,18 +165,15 @@ public class RobotFrameworkCamelConfiguration implements 
Cloneable {
                             + "option), as a class name or the path of a 
listener file, with arguments after the name "
                             + "separated with colon. Use listeners for 
several.")
     private String listener;
-    @UriParam(description = "Passed as the robot --warnonskippedfiles option, 
which the Robot Framework version of "
-                            + "this component (4.1.2) does not have: enabling 
it makes the run fail with return code "
-                            + "252.")
+    @UriParam(description = "Deprecated: the robot --warnonskippedfiles option 
was removed in Robot Framework 3.0. "
+                            + "This option is ignored.")
     private boolean warnOnSkippedFiles;
     @UriParam(defaultValue = "78",
-              description = "Passed as the robot --monitorwidth option, which 
the Robot Framework version of this "
-                            + "component (4.1.2) does not have (it is now 
--consolewidth): setting it makes the run "
-                            + "fail with return code 252. Not passed unless 
set.")
+              description = "Deprecated: the robot --monitorwidth option was 
removed in Robot Framework 3.0. "

Review Comment:
   ⚠️ `deprecated = true` missing, and `defaultValue = "78"` is now misleading 
— the value is never forwarded to RF after this change.
   
   ```suggestion
       @UriParam(deprecated = true,
                 description = "Deprecated: the robot --monitorwidth option was 
removed in Robot Framework 3.0. "
                               + "This option is ignored.")
       private String monitorWidth;
   ```



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