Skip to content
Permalink
Browse files

Removes extra exception printed on initializing delegating channels.

  • Loading branch information...
damencho authored and bgrozev committed Jun 7, 2019
1 parent c7c4719 commit 0b052e8f857653c32ef17ae8e35283f7993972ac
@@ -85,10 +85,6 @@ public DelegatingServerSocketChannel(T delegate)
catch(NoSuchMethodException e)
{
method = null;

classLogger.log(
Level.SEVERE,
"Cannot find method translateAndSetInterestOps", e);
}
translateAndSetInterestOpsMethod = method;

@@ -101,10 +97,16 @@ public DelegatingServerSocketChannel(T delegate)
{
method = null;

classLogger.log(
Level.SEVERE, "Cannot find method translateInterestOps", e);
}
translateInterestOpsMethod = method;

if (translateInterestOpsMethod == null
&& translateAndSetInterestOpsMethod == null)
{
classLogger.log(
Level.SEVERE, "Cannot find translateInterestOps " +
"or translateAndSetInterestOps!");
}
}

/**
@@ -85,9 +85,6 @@ public DelegatingSocketChannel(T delegate)
{
method = null;

classLogger.log(
Level.SEVERE,
"Cannot find method translateAndSetInterestOps", e);
}
translateAndSetInterestOpsMethod = method;

@@ -99,11 +96,16 @@ public DelegatingSocketChannel(T delegate)
catch(NoSuchMethodException e)
{
method = null;
}
translateInterestOpsMethod = method;

if (translateInterestOpsMethod == null
&& translateAndSetInterestOpsMethod == null)
{
classLogger.log(
Level.SEVERE, "Cannot find method translateInterestOps", e);
Level.SEVERE, "Cannot find translateInterestOps " +
"or translateAndSetInterestOps!");
}
translateInterestOpsMethod = method;
}

/**

0 comments on commit 0b052e8

Please sign in to comment.
You can’t perform that action at this time.