-
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
Corrected all Java interfaces declarations #2807
Corrected all Java interfaces declarations #2807
Conversation
I like the changes. However, we don't have a style guideline because we don't want to enforce one particular coding style on contributors: the functionality is first, the style is secondary. |
@akarnokd great About code style: project is actively developing and code style can be problem in future, I think it will be good to have small amount of You can ping me if you'll decide to do it with my help |
I agree on the necessity of |
@colriot as I see, they won't break source compatibility and |
@artem-zinnatullin yeah, completely agree on |
I have a general aversion to In the 2+ years of this project taking pull requests style has rarely been a topic of discussion or issue. What legit problems that affect behavior or safety will Checkstyle solve? As for the changes in these pull request, a brief review seems like they are okay but I'll spend more time when I have it to review in depth. |
+1 for Ben. |
I got your point, okay. P.S. Not a fan of Airbnb, just want to quote their "nerds" post: But I can't say, that it applicable to RxJava, code style is good in most of files 👍 |
Corrected all Java interfaces declarations
@@ -34,7 +34,7 @@ | |||
* <p> | |||
* The {@link Observable} will not call this method if it calls {@link #onError}. | |||
*/ | |||
public abstract void onCompleted(); | |||
void onCompleted(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change. E.g., RxScala has a Scala Observer wrapper that calls these methods. Removing public abstract
will break them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both modifiers are implicit and redundant. Run javap
on the class file and you'll see both are still present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Never noticed they are public by default...
Just little Java syntax fix for interfaces
I checked all interfaces in RxJava.
@benjchristensen I can add and configure
Checkstyle
gradle plugin for RxJava if you don't mind, mm?