判断参数 ,抛出异常, 一个方法一个return
public FixedLengthFrameDecoder(int frameLength) { if(frameLength <= 0) { throw new IllegalArgumentException("frameLength must be a positive integer: " + frameLength ); } this.frameLength = frameLength; }