-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[FLINK-3093] Introduce annotations for interface stability in flink-core #1427
[FLINK-3093] Introduce annotations for interface stability in flink-core #1427
Conversation
@@ -33,6 +34,7 @@ | |||
* @param <U> Type of the pair's first element. | |||
* @param <V> Type of the pair's second element. | |||
*/ | |||
@PublicInterface | |||
public abstract class Pair<U extends Key<U>, V extends Key<V>> implements Key<Pair<U, V>> { |
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.
is this the class mentioned in FLINK-2344? https://issues.apache.org/jira/browse/FLINK-2344
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.
Most likely, yes. I've asked Stephan in the JIRA just to make sure.
Are inner classes of a class tagged as |
Thanks for the initiative, Robert. I had a look and here are some thoughts: General Comments
Stability decisions to make before 1.0
Classes that I suggest not to declare public
The following classes should be declared as stable, in my opinion:
Classes that are good candidates for public API:
|
Since this is primarily used to tag Interface or methods, could we just call the annotations as Public and Experimental rather than PublicInterface and PublicExperimental ? Seemed redundant to me. |
Thank you all for the comments. I'll keep the annotation on the |
I didn't make |
Yes! |
a08ee41
to
8dd0381
Compare
I addressed all issues you've mentioned and rebased the code to the current master. I would like to merge this soon! |
Hi, I had a look and have some comments as well
We need to carefully check the class hierarchy of public/stable classes. For example, if we make |
Thanks a lot for looking into this! In the
Regarding the
I also remember that there was an issue like this with the I removed the |
8dd0381
to
bf5fe43
Compare
Please see #1426