Skip to content

Commit 13c52f9

Browse files
committed
More precise generics for CloseShieldChannelHandler.SUPPORTED_INTERFACES
1 parent 08573a6 commit 13c52f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/commons/io/channels/CloseShieldChannelHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939

4040
final class CloseShieldChannelHandler implements InvocationHandler {
4141

42-
private static final Set<Class<?>> SUPPORTED_INTERFACES;
42+
private static final Set<Class<? extends Channel>> SUPPORTED_INTERFACES;
4343

4444
static {
45-
final Set<Class<?>> interfaces = new HashSet<>();
45+
final Set<Class<? extends Channel>> interfaces = new HashSet<>();
4646
interfaces.add(AsynchronousChannel.class);
4747
interfaces.add(ByteChannel.class);
4848
interfaces.add(Channel.class);

0 commit comments

Comments
 (0)