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 all version checks for Java 6 and 7 #14006

Merged
merged 4 commits into from Apr 27, 2024

Conversation

chrisvest
Copy link
Contributor

Motivation:
Netty 4.2 now requires Java 8 as the minimum supported version, so there is no need to guard for older JDKs.

Modification:
Remove all the version checks for Java 7 and older, and remove all uses of @SuppressJava6Requirement. Revapi complains these annotation removals are a potential compatibility issue, so ignores have been added.

Result:
Less code dealing with JDK versions.

@chrisvest chrisvest added this to the 4.2.0.Final milestone Apr 26, 2024
Motivation:
Netty 4.2 now requires Java 8 as the minimum supported version, so there is no need to guard for older JDKs.

Modification:
Remove all the version checks for Java 7 and older, and remove all uses of `@SuppressJava6Requirement`.
Revapi complains these annotation removals are a potential compatibility issue, so ignores have been added.

Result:
Less code dealing with JDK versions.
It detects a binary incompatibility when compiled with newer JDKs.
@chrisvest
Copy link
Contributor Author

@normanmaurer Addressed comments and rebased.

Copy link
Member

@normanmaurer normanmaurer left a comment

Choose a reason for hiding this comment

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

Ship it

@normanmaurer normanmaurer merged commit e2aab65 into netty:4.2 Apr 27, 2024
14 of 15 checks passed
@normanmaurer
Copy link
Member

@chrisvest thanks!

@chrisvest chrisvest deleted the 4.2-all-java-8-or-better branch April 27, 2024 20:55
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.

None yet

2 participants