-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
2.x: eliminate all anyonymous inner classes #5150
Comments
IntelliJ has "search structurally" function with predefined search for anonymous classes ( |
Thanks. It shows about 115 places under |
Hey guys, the issue is tagged with "PR welcome", so `i started working on it and removed all of them. Getting test errors due to naming violations. Early feedback is appreciated. https://github.com/SleimanJneidi/RxJava/tree/remove-anonymous-inner-classes |
Hi and thanks for tackling this. See #5159 where I can comment on specific issues. |
Looks like there are a bunch of copy-paste errors and the test hangs due to some unexpected code changes. I suggest you start over piece by piece and verifying after each java file the tests still pass. |
Done. |
Currently, mostly the base reactive classes have been cleared of anonymous inner classes. Still, many stacktraces contain
SomeClass$1$2
that makes it difficult to figure out what that exact component was without having an IDE open.I don't know if IDEs allow searching for anonymous inner classes and/or highlight them like warnings, thus the a reasonable way would be to scan the build directory for files containing the
$
pattern.In addition, if there is an agreement, a new style-validation unit test could be added that does the same scanning at unit test time (ignoring
SomeClassTest
s) and warning/failing the build if any of such files was found.PR welcome.
The text was updated successfully, but these errors were encountered: