CPD Results

The following document contains the results of PMD's CPD 5.0.2.

Duplications

FileLine
uk/ac/ebi/intenz/webapp/controller/SearchIDCommand.java97
uk/ac/ebi/intenz/webapp/controller/SearchProposedCommand.java146
				LOGGER.error("Searching by ID", e);
				PropertyResourceBundle intenzMessages = (PropertyResourceBundle) request
						.getSession().getServletContext()
						.getAttribute("intenz.messages");
				IntEnzMessenger.sendError(this.getClass().toString(),
						intenzMessages.getString(e.getMessageKey()),
						(String) request.getSession().getAttribute("user"));
				request.setAttribute("message", e.getMessage());
			} finally {
				try {
					con.close();
				} catch (SQLException e) {
					IntEnzMessenger.sendError(this.getClass().toString(), e
							.getMessage(), (String) request.getSession()
							.getAttribute("user"));
					request.setAttribute("message", e.getMessage());
					return null;
				}
			}
		}
		return enzymeEntry;
	}
}
FileLine
uk/ac/ebi/intenz/webapp/controller/SearchECCommand.java415
uk/ac/ebi/intenz/webapp/controller/SearchIDCommand.java97
uk/ac/ebi/intenz/webapp/controller/SearchProposedCommand.java146
				LOGGER.error("Finding enzyme entry", e);
				PropertyResourceBundle intenzMessages = (PropertyResourceBundle) request
						.getSession().getServletContext()
						.getAttribute("intenz.messages");
				IntEnzMessenger.sendError(this.getClass().toString(),
						intenzMessages.getString(e.getMessageKey()),
						(String) request.getSession().getAttribute("user"));
				request.setAttribute("message", e.getMessage());
			} finally {
				try {
					con.close();
				} catch (SQLException e) {
					IntEnzMessenger.sendError(this.getClass().toString(), e
							.getMessage(), (String) request.getSession()
							.getAttribute("user"));
					request.setAttribute("message", e.getMessage());
					return null;
				}
			}
		}
		return enzymeEntry;
	}
FileLine
uk/ac/ebi/intenz/webapp/controller/SearchIDCommand.java84
uk/ac/ebi/intenz/webapp/controller/SearchProposedCommand.java133
					entries.put(id, enzymeEntry);
				}
			} catch (SQLException e) {
				IntEnzMessenger.sendError(this.getClass().toString(), e
						.getMessage(), (String) request.getSession()
						.getAttribute("user"));
				request.setAttribute("message", e.getMessage());
			} catch (MapperException e) {
				IntEnzMessenger.sendError(this.getClass().toString(), e
						.getMessage(), (String) request.getSession()
						.getAttribute("user"));
				request.setAttribute("message", e.getMessage());
			} catch (DomainException e) {
				LOGGER.error("Searching by ID", e);
FileLine
uk/ac/ebi/intenz/webapp/controller/SearchECCommand.java404
uk/ac/ebi/intenz/webapp/controller/SearchIDCommand.java86
uk/ac/ebi/intenz/webapp/controller/SearchProposedCommand.java135
			} catch (SQLException e) {
				IntEnzMessenger.sendError(this.getClass().toString(), e
						.getMessage(), (String) request.getSession()
						.getAttribute("user"));
				request.setAttribute("message", e.getMessage());
			} catch (MapperException e) {
				IntEnzMessenger.sendError(this.getClass().toString(), e
						.getMessage(), (String) request.getSession()
						.getAttribute("user"));
				request.setAttribute("message", e.getMessage());
			} catch (DomainException e) {
				LOGGER.error("Finding enzyme entry", e);