private void cleanup() { if (!initialized) { throw new IllegalStateException(); } initialized = false; childProducts.clear(); try { destroy(); } catch (Exception e2) { log.warn("Failed to destroy a decoding state machine.", e2); } }
private DecodingState getCurrentState() throws Exception { DecodingState state = this.currentState; if (state == null) { state = init(); initialized = true; } return state; } }
throws Exception { DecodingState nextState; DecodingState state = getCurrentState(); try { for (;;) { } finally { this.currentState = state; nextState = finishDecode(childProducts, out); if (state == null) { cleanup();
public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { DecodingState nextState; DecodingState state = getCurrentState(); try { for (;;) { } finally { this.currentState = state; nextState = finishDecode(childProducts, out); if (state == null) { cleanup();
public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { DecodingState nextState; DecodingState state = getCurrentState(); try { for (;;) { } finally { this.currentState = state; nextState = finishDecode(childProducts, out); if (state == null) { cleanup();
private DecodingState getCurrentState() throws Exception { DecodingState state = this.currentState; if (state == null) { state = init(); initialized = true; } return state; } }
private void cleanup() { if (!initialized) { throw new IllegalStateException(); } initialized = false; childProducts.clear(); try { destroy(); } catch (Exception e2) { log.warn("Failed to destroy a decoding state machine.", e2); } }
DecodingState state = getCurrentState(); return finishDecode(childProducts, out); cleanup();
private DecodingState getCurrentState() throws Exception { DecodingState state = this.currentState; if (state == null) { state = init(); initialized = true; } return state; } }
private void cleanup() { if (!initialized) { throw new IllegalStateException(); } initialized = false; childProducts.clear(); try { destroy(); } catch (Exception e2) { log.warn("Failed to destroy a decoding state machine.", e2); } }
DecodingState state = getCurrentState(); return finishDecode(childProducts, out); cleanup();
DecodingState state = getCurrentState(); return finishDecode(childProducts, out); cleanup();