The following document contains the results of PMD's CPD 6.4.0.
File | Line |
---|---|
org/eclipse/jgit/http/server/ReceivePackServlet.java | 140 |
org/eclipse/jgit/http/server/UploadPackServlet.java | 159 |
rp = receivePackFactory.create(req, getRepository(req)); } catch (ServiceNotAuthorizedException e) { rsp.sendError(SC_UNAUTHORIZED, e.getMessage()); return; } catch (ServiceNotEnabledException e) { sendError(req, rsp, SC_FORBIDDEN, e.getMessage()); return; } try { req.setAttribute(ATTRIBUTE_HANDLER, rp); chain.doFilter(req, rsp); } finally { req.removeAttribute(ATTRIBUTE_HANDLER); } } @Override public void init(FilterConfig filterConfig) throws ServletException { // Nothing. } @Override public void destroy() { // Nothing. } } /** {@inheritDoc} */ @Override public void doPost(final HttpServletRequest req, final HttpServletResponse rsp) throws IOException { if (!RECEIVE_PACK_REQUEST_TYPE.equals(req.getContentType())) { |