gnodet-bot commented on code in PR #29643:
URL: https://github.com/apache/camel/pull/29643#discussion_r4540057373
##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/QuickFixes.java:
##########
@@ -36,7 +36,7 @@ public final class QuickFixes {
/**
* A replacement on the line of a problem.
*
- * @param label what the fix does, such as "peroid → period"
+ * @param label what the fix does, such as "period → period"
Review Comment:
⚠️ **Incorrect fix — `peroid` is an intentional example misspelling.**
The `@param label` example `"peroid → period"` intentionally uses a
misspelled word to demonstrate what a fix-label string looks like (old
misspelling → corrected form). Changing it to `"period → period"` makes the
example tautological — both sides of the arrow are the same word, which no
longer illustrates the before→after concept.
Please revert this change or use a neutral example like:
```suggestion
* @param label what the fix does, such as "misspeling → misspelling"
```
##########
components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java:
##########
@@ -269,7 +269,7 @@ private MethodInfo evalMethods(
}
/**
- * The public method name of the bean closest to the given one (a typo
such as lenght for length), or null.
+ * The public method name of the bean closest to the given one (a typo
such as length for length), or null.
Review Comment:
⚠️ **Incorrect fix — `lenght` is an intentional example misspelling.**
The original text `"a typo such as lenght for length"` deliberately uses
`lenght` as an example of the kind of typo that `closestMethodName()` is
designed to handle. Changing it to `"a typo such as length for length"` removes
the example of a typo and leaves a redundant phrase.
Please revert this change or rephrase to make the intentional nature of the
example clear, e.g.:
```suggestion
* The public method name of the bean closest to the given one (a typo
such as {@code lenght} for {@code length}), or null.
```
--
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]