Source:
<code>protected void processPacket() { assert (request instanceof BookieProtocol.AddRequest); BookieProtocol.AddRequest add = (BookieProtocol.AddRequest) request; if (requestProcessor.bookie.isReadOnly()) { LOG.warn("BookieServer is running in readonly mode," + " so rejecting the request from the client!"); sendResponse(BookieProtocol.EREADONLY, ResponseBuilder.buildErrorResponse(BookieProtocol.EREADONLY, add), requestProcessor.addRequestStats); add.release(); return; } startTimeNanos = MathUtils.nowInNano(); int rc = BookieProtocol.EOK; ByteBuf addData = add.getData(); try { if (add.isRecoveryAdd()) { requestProcessor.bookie.recoveryAddEntry(addData, this, channel, add.getMasterKey()); } else { requestProcessor.bookie.addEntry(addData, this, channel, add.getMasterKey()); } } catch (IOException e) { LOG.error("Error writing " + add, e); rc = BookieProtocol.EIO; } catch (BookieException.LedgerFencedException lfe) { LOG.error("Attempt to write to fenced ledger", lfe); rc = BookieProtocol.EFENCED; } catch (BookieException e) { LOG.error("Unauthorized access to ledger " + add.getLedgerId(), e); rc = BookieProtocol.EUA; } catch (Throwable t) { <START> LOG.error("Unexpected exception while writing {}@{} : {}", new Object[] { add.ledgerId, add.entryId, t.getMessage(), t }); <END> rc = BookieProtocol.EBADREQ; } finally { addData.release(); } if (rc != BookieProtocol.EOK) { requestProcessor.addEntryStats.registerFailedEvent(MathUtils.elapsedNanos(startTimeNanos), TimeUnit.NANOSECONDS); sendResponse(rc, ResponseBuilder.buildErrorResponse(rc, add), requestProcessor.addRequestStats); add.recycle(); } }</code><technical_language>I this is a too-long line, fail checkstyle</technical_language>

Target:
protected void processPacket() { assert (request instanceof BookieProtocol.AddRequest); BookieProtocol.AddRequest add = (BookieProtocol.AddRequest) request; if (requestProcessor.bookie.isReadOnly()) { LOG.warn("BookieServer is running in readonly mode," + " so rejecting the request from the client!"); sendResponse(BookieProtocol.EREADONLY, ResponseBuilder.buildErrorResponse(BookieProtocol.EREADONLY, add), requestProcessor.addRequestStats); add.release(); return; } startTimeNanos = MathUtils.nowInNano(); int rc = BookieProtocol.EOK; ByteBuf addData = add.getData(); try { if (add.isRecoveryAdd()) { requestProcessor.bookie.recoveryAddEntry(addData, this, channel, add.getMasterKey()); } else { requestProcessor.bookie.addEntry(addData, this, channel, add.getMasterKey()); } } catch (IOException e) { LOG.error("Error writing " + add, e); rc = BookieProtocol.EIO; } catch (BookieException.LedgerFencedException lfe) { LOG.error("Attempt to write to fenced ledger", lfe); rc = BookieProtocol.EFENCED; } catch (BookieException e) { LOG.error("Unauthorized access to ledger " + add.getLedgerId(), e); rc = BookieProtocol.EUA; } catch (Throwable t) { LOG.error("Unexpected exception while writing {}@{} : {}", add.ledgerId, add.entryId, t.getMessage(), t); rc = BookieProtocol.EBADREQ; } finally { addData.release(); } if (rc != BookieProtocol.EOK) { requestProcessor.addEntryStats.registerFailedEvent(MathUtils.elapsedNanos(startTimeNanos), TimeUnit.NANOSECONDS); sendResponse(rc, ResponseBuilder.buildErrorResponse(rc, add), requestProcessor.addRequestStats); add.recycle(); } }