Skip to content

GHDeploymentState still contains reference to @deprecated javadoc after annotation cleanup #1269

Closed

Description

@jfbibeau

Describe the bug
PR #1184 cleaned up the @Deprecated annotations for Preview APIs which is great! However, for GHDeploymentState, the @deprecated javadoc wasn't removed, see here:

https://github.com/hub4j/github-api/pull/1184/files#diff-e41ba41aaa25735d01eb4efdd7ce10f1cf5c9bfc986a503579a94386ca3744a6R17

To Reproduce
Steps to reproduce the behavior:

  1. Use the latest version of this library and have some code like:
var deployment = repo.getDeployment(deploymentId);
deployment.createStatus(state)
    .logUrl(logUrl)
    .create();

Notice that logUrl is still marked as deprecated by IntelliJ because of * @deprecated until preview feature has graduated to stable

Expected behavior
The javadoc should have been removed at the same time as the annotation so the method isn't marked as deprecated.

Library version: 1.135

Activity

  1. ReyhanPatria commented on Nov 2, 2021

    @ReyhanPatria
    Contributor

    Hi! I assume the preview feature is stable now, so it's simply removing the deprecated annotation, I'd like to work on this as it would be a simple enough task for my first issue. Thanks!

  2. jfbibeau commented on Nov 2, 2021

    @jfbibeau
    Author

    To be clear, the @Deprecated annotation is already removed, since the goal of #1184 was to remove them as they were a confusing way to refer to Preview features. However the javadoc remains and needs to be removed. This would be a great first issue!

  3. ReyhanPatria commented on Nov 2, 2021

    @ReyhanPatria
    Contributor

    Yes, so I'll removing the @deprecated from the javadoc, correct?

  4. jfbibeau commented on Nov 2, 2021

    @jfbibeau
    Author

    Yup!

  5. ReyhanPatria commented on Nov 2, 2021

    @ReyhanPatria
    Contributor

    Okay, I'll work on this ASAP.

  6. added a commit that references this issue on Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions