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

chore: increase min supported java version to 17 #2624

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vovchyk
Copy link
Contributor

@Vovchyk Vovchyk commented Jul 19, 2024

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)

fed:vovchyk/min-java-ver-bump

@Vovchyk Vovchyk force-pushed the vovchyk/min-java-ver-bump branch 3 times, most recently from 47732a3 to bfe3d65 Compare July 22, 2024 08:51
Copy link

sonarcloud bot commented Jul 22, 2024

@Vovchyk
Copy link
Contributor Author

Vovchyk commented Jul 22, 2024

pipeline:run

Assertions.assertTrue(channelManager.isAddressBlockAvailable(otherPeer.getInetSocketAddress().getAddress()));

verify(logger).error(anyString(), any(Throwable.class));
Copy link
Contributor

Choose a reason for hiding this comment

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

so now, are not we checking if a log was written?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. First, there's a doubt on whether we need to cover logging with unit tests. Second, in this particular case verifying if the logger receives any string seems not to be that useful. And last but not least, starting from java17 it's prohibited to set private static field via reflection (in our case it's a logger)

Copy link
Contributor

@nagarev nagarev left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

3 participants