Skip to content
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

Add aliasing annotation #52

Merged

Conversation

aditya3434
Copy link

Alternative fix for issue openjdk#3313 in typetools/checker-framework. Annotating Object class as @unique to remove unnecessary @SuppressWarnings("unique.leaked") annotation on parent class constructors.

@@ -49,7 +50,7 @@
* @see java.lang.Class
* @since 1.0
*/
@AnnotatedFor({"guieffect", "index", "lock", "nullness"})
@AnnotatedFor({"guieffect", "index", "lock", "nullness", "aliasing"})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the list of type systems sorted, so put "aliasing" as the first system.

@wmdietl wmdietl changed the title 3313 leak in constructor error fix Add aliasing annotation Jun 23, 2020
@wmdietl wmdietl merged commit ef55b48 into typetools:master Jun 23, 2020
@aditya3434 aditya3434 deleted the 3313-leak-in-constructor-error-fix branch June 26, 2020 14:59
Ao-senXiong pushed a commit to Ao-senXiong/jdkopprop that referenced this pull request Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants