New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operators
inner classes' Scannable#name
is always "s"
#2526
Comments
It would be fairly easy to fix by overriding the |
Apart from the obvious fix via the override, isn't weird that the current heuristic uses the enclosing class name rather than the enclosed one? String name = toString();
if (name.contains("@") && name.contains("$")) {
name = name
.substring(0, name.indexOf('$'))
.substring(name.lastIndexOf('.') + 1);
}
String stripped = OPERATOR_NAME_UNRELATED_WORDS_PATTERN
.matcher(name)
.replaceAll("");
if (!stripped.isEmpty()) {
return stripped.substring(0, 1).toLowerCase() + stripped.substring(1);
}
return stripped; First of all, it does special treatment iff we're dealing with a non-overridden Also, InnerConsumer has a copy-paste of this code but using Lastly, shouldn't |
See also #2547 |
I think we can remove the special case for For the This includes:
|
Reproducer:
The text was updated successfully, but these errors were encountered: