ppkarwasz commented on code in PR #799:
URL: https://github.com/apache/commons-io/pull/799#discussion_r2430001769
##########
src/test/java/org/apache/commons/io/channels/CloseShieldChannelTest.java:
##########
@@ -116,8 +122,8 @@ void testCloseIsShielded(final Class<? extends Channel>
channelClass) throws Exc
@Test
void testDoesNotDoubleWrap() {
final ByteChannel channel = mock(ByteChannel.class);
- final ByteChannel shield1 = CloseShieldChannel.wrap(channel);
- final ByteChannel shield2 = CloseShieldChannel.wrap(shield1);
+ final ByteChannel shield1 = CloseShieldChannel.wrap(channel,
ByteChannel.class);
+ final ByteChannel shield2 = CloseShieldChannel.wrap(shield1,
ByteChannel.class);
Review Comment:
Reverted or replaced by casts in
https://github.com/apache/commons-io/pull/799/commits/7a0608f5b755e989930add275e3376d27cdb098c
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]