Remove redundant exception message

This commit is contained in:
Trustin Lee 2012-11-26 15:34:09 +09:00
parent 9018f8e5ca
commit 089d022e03

View File

@ -73,7 +73,7 @@ public class CompatibleMarshallingDecoder extends ReplayingDecoder<Object, Void>
return obj;
} catch (LimitingByteInput.TooBigObjectException e) {
discardingTooLongFrame = true;
throw new TooLongFrameException("Object to big to unmarshal");
throw new TooLongFrameException();
} finally {
// Call close in a finally block as the ReplayingDecoder will throw an Error if not enough bytes are
// readable. This helps to be sure that we do not leak resource