CPD Results
The following document contains the results of PMD's CPD 6.55.0.
Duplications
File | Line |
---|---|
org/apache/struts/webapp/dispatch/ActionDispatcherExample.java | 44 |
org/apache/struts/webapp/dispatch/EventActionDispatcherExample.java | 44 |
ActionDispatcher.DISPATCH_FLAVOR); private int fooCount; private int barCount; /** * Execute method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return dispatcher.execute(mapping, form, request, response); } /** * Example "foo" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doFoo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { fooCount++; ActionMessages messages = new ActionMessages(); messages.add("foo", new ActionMessage("count.foo.message", fooCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } /** * Example "bar" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doBar(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { barCount++; ActionMessages messages = new ActionMessages(); messages.add("bar", new ActionMessage("count.bar.message", barCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } } |
File | Line |
---|---|
org/apache/struts/webapp/dispatch/DispatchExampleAction.java | 41 |
org/apache/struts/webapp/dispatch/EventDispatchActionExample.java | 41 |
org/apache/struts/webapp/dispatch/MappingDispatchExampleAction.java | 41 |
private int fooCount; private int barCount; /** * Example "foo" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doFoo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { fooCount++; ActionMessages messages = new ActionMessages(); messages.add("foo", new ActionMessage("count.foo.message", fooCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } /** * Example "bar" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doBar(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { barCount++; ActionMessages messages = new ActionMessages(); messages.add("bar", new ActionMessage("count.bar.message", barCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } } |
File | Line |
---|---|
org/apache/struts/webapp/dispatch/ActionDispatcherExample.java | 65 |
org/apache/struts/webapp/dispatch/EventActionDispatcherExample.java | 65 |
org/apache/struts/webapp/dispatch/LookupDispatchExampleAction.java | 53 |
return dispatcher.execute(mapping, form, request, response); } /** * Example "foo" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doFoo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { fooCount++; ActionMessages messages = new ActionMessages(); messages.add("foo", new ActionMessage("count.foo.message", fooCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } /** * Example "bar" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doBar(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { barCount++; ActionMessages messages = new ActionMessages(); messages.add("bar", new ActionMessage("count.bar.message", barCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } |
File | Line |
---|---|
org/apache/struts/webapp/dispatch/ActionDispatcherExample.java | 79 |
org/apache/struts/webapp/dispatch/DispatchExampleAction.java | 54 |
org/apache/struts/webapp/dispatch/EventActionDispatcherExample.java | 79 |
org/apache/struts/webapp/dispatch/EventDispatchActionExample.java | 54 |
org/apache/struts/webapp/dispatch/MappingDispatchExampleAction.java | 54 |
public ActionForward doFoo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { fooCount++; ActionMessages messages = new ActionMessages(); messages.add("foo", new ActionMessage("count.foo.message", fooCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } /** * Example "bar" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doBar(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { barCount++; ActionMessages messages = new ActionMessages(); messages.add("bar", new ActionMessage("count.bar.message", barCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } } |
File | Line |
---|---|
org/apache/struts/webapp/dispatch/DispatchExampleAction.java | 54 |
org/apache/struts/webapp/dispatch/EventDispatchActionExample.java | 54 |
org/apache/struts/webapp/dispatch/LookupDispatchExampleAction.java | 66 |
org/apache/struts/webapp/dispatch/MappingDispatchExampleAction.java | 54 |
public ActionForward doFoo(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { fooCount++; ActionMessages messages = new ActionMessages(); messages.add("foo", new ActionMessage("count.foo.message", fooCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } /** * Example "bar" method. * * @param mapping The ActionMapping used to select this instance * @param form The optional ActionForm bean for this request * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception Exception if business logic throws an exception */ public ActionForward doBar(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { barCount++; ActionMessages messages = new ActionMessages(); messages.add("bar", new ActionMessage("count.bar.message", barCount+"")); saveMessages(request, messages); return (mapping.findForward("success")); } |