Fix compiler warnings related with SCTP detection
This commit is contained in:
parent
d78f5a4f76
commit
f1e382c89d
@ -87,7 +87,7 @@ public final class TestUtils {
|
|||||||
// Try to open a SCTP Channel, by using reflection to make it compile also on
|
// Try to open a SCTP Channel, by using reflection to make it compile also on
|
||||||
// operation systems that not support SCTP like OSX and Windows
|
// operation systems that not support SCTP like OSX and Windows
|
||||||
Class<?> sctpChannelClass = Class.forName("com.sun.nio.sctp.SctpChannel");
|
Class<?> sctpChannelClass = Class.forName("com.sun.nio.sctp.SctpChannel");
|
||||||
Channel channel = (Channel) sctpChannelClass.getMethod("open", null).invoke(null, null);
|
Channel channel = (Channel) sctpChannelClass.getMethod("open").invoke(null);
|
||||||
try {
|
try {
|
||||||
channel.close();
|
channel.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user