Skip to content

Remove @Deprecated annotation from Preview and BetaApi elements - #1184

Merged
bitwiseman merged 4 commits into
hub4j:mainfrom
bitwiseman:no-deprecated
Jun 15, 2021
Merged

bitwiseman merged 4 commits into
hub4j:mainfrom
bitwiseman:no-deprecated

Conversation

@bitwiseman

@bitwiseman bitwiseman commented Jun 14, 2021 •

Copy link
Copy Markdown
Member

Description

The use of @Deprecated annotations to on Preview and BetaApi elements is a continuing source of confusion for users. While it is important to maintain compatibility and communicate the "Preview" state to users, the @Deprecated annotation is simply not the right way to do it.

This change removes all the @Deprecated annotations for that scenario. After this change, all methods marked as @Deprecated will actually be deprecated and will eventually be removed.

Fixes #1003

@gsmet @yeikel

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than main. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.

When creating a PR:

  • Fill in the "Description" above.
  • Enable "Allow edits from maintainers".

@codecov

codecov Bot commented Jun 14, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #1184 (bf9e420) into main (66c74e9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1184   +/-   ##
=========================================
  Coverage     73.82%   73.82%           
  Complexity     1856     1856           
=========================================
  Files           186      186           
  Lines          6163     6163           
  Branches        367      367           
=========================================
  Hits           4550     4550           
  Misses         1392     1392           
  Partials        221      221           
Impacted Files Coverage Δ
.../main/java/org/kohsuke/github/AbstractBuilder.java 77.77% <ø> (ø)
src/main/java/org/kohsuke/github/GHApp.java 72.54% <ø> (ø)
...va/org/kohsuke/github/GHAppCreateTokenBuilder.java 85.71% <ø> (ø)
...ain/java/org/kohsuke/github/GHAppInstallation.java 51.78% <ø> (ø)
src/main/java/org/kohsuke/github/GHBranch.java 72.09% <ø> (ø)
...in/java/org/kohsuke/github/GHBranchProtection.java 60.00% <ø> (ø)
src/main/java/org/kohsuke/github/GHCheckRun.java 80.00% <ø> (ø)
...ain/java/org/kohsuke/github/GHCheckRunBuilder.java 86.40% <ø> (ø)
src/main/java/org/kohsuke/github/GHCommit.java 71.91% <ø> (ø)
.../main/java/org/kohsuke/github/GHCommitComment.java 70.58% <ø> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66c74e9...bf9e420. Read the comment docs.

@bitwiseman
bitwiseman requested a review from timja June 15, 2021 15:14
assertThat(classFiles.size(), greaterThan(0));
}

@Ignore("No longer using deprecated for this purpose")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is there a reason you aren't removing the test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove @Deprecated from @Preview and @BetaApi methods and classes

2 participants