Skip to content

Conversation

@anukalp2804
Copy link
Contributor

Summary

Improves documentation for the deprecated Language.SCRIPT constant.

Motivation

Language.SCRIPT is deprecated but lacked structured deprecation metadata.
This change clarifies the rationale, adds since information, and documents
the recommended replacement.

Changes

  • Added deprecation rationale to Javadoc
  • Added @Deprecated(since = "4.0.0-alpha", forRemoval = false)
  • No behavioral or compatibility changes

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the Core IT successfully.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

Note: This change is documentation-only and does not affect runtime behavior.

@anukalp2804
Copy link
Contributor Author

Gentle ping 🙂
Just checking whether this PR needs anything further from my side.
Happy to update it if needed. Thanks!

@anukalp2804
Copy link
Contributor Author

Just checking in on this PR. It has been idle for a while and is still awaiting workflow approval and review.

* This constant is retained for backward compatibility with Maven 3.
*
* @deprecated Use {@link #RESOURCES} instead.
* @deprecated Since Maven 4.0.0-alpha.
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need Since Maven 4.0.0-alpha. here?

* Use {@link #RESOURCES} instead.
*/
@Deprecated
@Deprecated(since = "4.0.0-alpha", forRemoval = false)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know that we want to specify alpha versions in since paramters. 4.0.0 is enough

Copy link
Contributor Author

@anukalp2804 anukalp2804 Jan 14, 2026

Choose a reason for hiding this comment

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

@elharo Updated as suggested. I’ve removed the alpha reference and used @deprecated(since = "4.0.0") without duplicating version information in the Javadoc. Please let me know if anything else needs adjustment.

Copy link
Contributor

Choose a reason for hiding this comment

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

It still says alpha,. 4.0.0 is better

* Use {@link #RESOURCES} instead.
*/
@Deprecated
@Deprecated(since = "4.0.0-alpha", forRemoval = false)
Copy link
Contributor

Choose a reason for hiding this comment

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

It still says alpha,. 4.0.0 is better

@anukalp2804
Copy link
Contributor Author

Fixed — replaced the plain @deprecated with @deprecated(since = "4.0.0").

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.

2 participants