You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2018/03/21 09:51:22 UTC
svn commit: r1827398 -
/tomcat/trunk/java/org/apache/catalina/tribes/group/GroupChannel.java
Author: markt
Date: Wed Mar 21 09:51:22 2018
New Revision: 1827398
URL: http://svn.apache.org/viewvc?rev=1827398&view=rev
Log:
SpotBugs
Improve exception handling
Modified:
tomcat/trunk/java/org/apache/catalina/tribes/group/GroupChannel.java
Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/GroupChannel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/GroupChannel.java?rev=1827398&r1=1827397&r2=1827398&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/GroupChannel.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/GroupChannel.java Wed Mar 21 09:51:22 2018
@@ -17,6 +17,7 @@
package org.apache.catalina.tribes.group;
+import java.io.IOException;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
@@ -267,9 +268,8 @@ public class GroupChannel extends Channe
}
return new UniqueId(data.getUniqueId());
- }catch ( Exception x ) {
- if ( x instanceof ChannelException ) throw (ChannelException)x;
- throw new ChannelException(x);
+ } catch (RuntimeException | IOException e) {
+ throw new ChannelException(e);
} finally {
if ( buffer != null ) BufferPool.getBufferPool().returnBuffer(buffer);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org