Skip to content

[Bug]: Hello World Sample uses a deprecated method (.major()) #39

@yekafe

Description

@yekafe

What happened?

[Bug]: Hello World Sample uses a deprecated method (.major())

From the docs:

major Link icon
@Deprecated(since="10")
public int major()
Deprecated.
As of Java SE 10, the first element of a version number is not the major-release number but the feature-release counter, incremented for every time-based release. Use the feature() method in preference to this method. For compatibility, this method returns the value of the feature element.
Returns the value of the major element of the version number.
Returns:
The value of the feature element

OS

Windows

What browsers are you seeing the problem on?

No response

Contact Details (optional)

No response

Additional information

Leave blank

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