gnodet commented on code in PR #22281:
URL: https://github.com/apache/camel/pull/22281#discussion_r2996996376
##########
tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/BaseOptionModel.java:
##########
@@ -344,7 +344,7 @@ public String getShortDefaultValue(int watermark) {
}
public String getShortName(int watermark) {
- String text = Strings.wrapCamelCaseWords(name, watermark, "{zwsp}");
+ String text = Strings.wrapCamelCaseWords(name, watermark, "");
// ensure the option name starts with lower-case
return Character.toLowerCase(text.charAt(0)) + text.substring(1);
Review Comment:
`wrapCamelCaseWords` in `Strings.java:55` uppercases the first character:
```java
text = Character.toUpperCase(text.charAt(0)) + text.substring(1);
```
Then `getShortName` in `BaseOptionModel.java:349` lowercases it right back:
```java
return Character.toLowerCase(text.charAt(0)) + text.substring(1);
```
Since property names already start with lowercase (e.g.
`camel.main.autoConfigurationEnabled`), it's `c` → `C` → `c` — a round-trip
back to the original.
_Claude Code on behalf of Guillaume Nodet_
--
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]