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

Remove Eclipse annotations package. #6992

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

Moderocky
Copy link
Member

We are repeatedly having to request changes on PRs to change the annotations.

Although this saves effort (in terms of resolving conflicts) I think it is costing time in the long run because it necessitates more reviews and re-reviews.

This PR does all the changes at once, meaning any future PR will be unaffected (and any existing PR can just merge the changes if they haven't already).

I used an automatic script for it, so it's possible that the odd mistake exists, but since it builds and tests correctly, I would expect it only to be in documentation if at all.

This also removes whitespace in a number of large legacy files according to the contribution guidelines:
image

The whitespace causes a number of changes in the file diff of PRs that aren't actually related to the PR and simply take up space making it harder to review. I wanted to squash a lot of it in one go so we won't have to deal with it later.


Description

Removes the org.eclipse.jdt library responsible for eclipse annotations.

Replaces all existing Eclipse annotations with the JetBrains alternative (e.g. NonNull -> NotNull).

This also removes the package-level eclipse annotations that were causing incorrect nullability warnings for addon developers in some place and encouraging incorrect assumptions (see the discussion re: 6684).


Related Issues: #6684

@Moderocky Moderocky added the housekeeping Housekeeping-related issue or task. label Aug 22, 2024
@Moderocky Moderocky marked this pull request as ready for review August 28, 2024 06:52
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

kenzie just did this for the contribution line count

Copy link
Member

@AyhamAl-Ali AyhamAl-Ali left a comment

Choose a reason for hiding this comment

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

Bye Bye Eclipse!

@Moderocky Moderocky added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Sep 1, 2024
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

The idea is fine. The other formatting changes (e.g. whitespace-only lines converted to blank) make me a little nervous for conflicts as GitHub has a tendency to complain, but it's not a big deal. I wonder if it would be worth doing away with the license headers at this point too?

@Moderocky Moderocky merged commit d25ea6d into SkriptLang:dev/patch Sep 5, 2024
6 checks passed
@Moderocky Moderocky deleted the bye-bye-annotations branch September 5, 2024 09:52
Nuutrai pushed a commit to Nuutrai/Skript that referenced this pull request Sep 19, 2024
* Remove dependencies.

* Remove whitespace changes.

* Revert branch merge error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Housekeeping-related issue or task. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants