Skip to content

Commit

Permalink
tests: remove redundant, clear compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mostroverkhov committed Jan 2, 2025
1 parent a4f4fa4 commit 52e8cbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 205 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static SslContext serverSslContext(String keystoreFile, String keystorePassword)
SslProvider sslProvider = sslProvider();
KeyStore keyStore = KeyStore.getInstance("PKCS12");
InputStream keystoreStream =
PingPongTest.class.getClassLoader().getResourceAsStream(keystoreFile);
AbstractTest.class.getClassLoader().getResourceAsStream(keystoreFile);
char[] keystorePasswordArray = keystorePassword.toCharArray();
keyStore.load(keystoreStream, keystorePasswordArray);

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
}

@Override
protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
protected void channelRead0(ChannelHandlerContext ctx, Object msg) {
if (msg instanceof FullHttpResponse) {
WebSocketClientHandshaker h = handshaker;
if (h.isHandshakeComplete()) {
Expand Down Expand Up @@ -515,11 +515,9 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) {
}
}

static <T> Set<T> setOf(T... elems) {
Set<T> set = new HashSet<>(elems.length);
for (T elem : elems) {
set.add(elem);
}
static Set<String> setOf(String... elems) {
Set<String> set = new HashSet<>(elems.length);
Collections.addAll(set, elems);
return set;
}
}

0 comments on commit 52e8cbc

Please sign in to comment.