Skip to content

Commit

Permalink
Update errorProneVersion to v2.21.1 (#9146)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <[email protected]>
  • Loading branch information
renovate[bot] and laurit authored Aug 7, 2023
1 parent b48c61c commit 01883e3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ val DEPENDENCY_BOMS = listOf(

val autoServiceVersion = "1.1.1"
val autoValueVersion = "1.10.2"
val errorProneVersion = "2.21.0"
val errorProneVersion = "2.21.1"
val byteBuddyVersion = "1.14.5"
val asmVersion = "9.5"
val jmhVersion = "1.37"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void noInetSocketAddress() {
}

@Test
@SuppressWarnings("AddressSelection")
void fullAddress() {
// given
InetSocketAddress address = new InetSocketAddress("api.github.com", 456);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void noInetSocketAddress() {
}

@Test
@SuppressWarnings("AddressSelection")
void fullAddress() {
// given
Addresses request =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public InetSocketAddress getClientInetSocketAddress(
}

@Test
@SuppressWarnings("AddressSelection")
void fullAddress() {
InetSocketAddress address = new InetSocketAddress("api.github.com", 456);
assertThat(address.getAddress().getHostAddress()).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public InetSocketAddress getServerInetSocketAddress(
}

@Test
@SuppressWarnings("AddressSelection")
void fullAddress() {
InetSocketAddress address = new InetSocketAddress("api.github.com", 456);
assertThat(address.getAddress().getHostAddress()).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private CustomNameResolver(EventExecutor executor) {
}

@Override
@SuppressWarnings("AddressSelection")
protected void doResolve(String inetHost, Promise<InetAddress> promise) {
try {
promise.setSuccess(InetAddress.getByName(inetHost));
Expand All @@ -44,6 +45,7 @@ protected void doResolve(String inetHost, Promise<InetAddress> promise) {
}

@Override
@SuppressWarnings("AddressSelection")
protected void doResolveAll(String inetHost, Promise<List<InetAddress>> promise) {
try {
// default implementation calls InetAddress.getAllByName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static int findOpenPort() {
return portAllocator.getPort();
}

@SuppressWarnings("AddressSelection")
private static boolean isPortOpen(int port) {
try (Socket socket = new Socket((String) null, port)) {
return true;
Expand Down

0 comments on commit 01883e3

Please sign in to comment.