This project has retired. For details please refer to its Attic page.
Apache Tiles - Framework - CPD Results

CPD Results

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

Duplications

File Line
org/apache/tiles/velocity/template/GetAsStringDirective.java 91
org/apache/tiles/velocity/template/InsertAttributeDirective.java 91
                servletContext), VelocityUtil.toSimpleBoolean((Boolean) params
                        .get("ignore"), false), context, request, response,
                writer);
    }

    /** {@inheritDoc} */
    @Override
    protected void start(InternalContextAdapter context,
            Writer writer, Map<String, Object> params,
            HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) {
        model.start(ServletUtil.getComposeStack(request), ServletUtil.getCurrentContainer(request,
                servletContext), VelocityUtil.toSimpleBoolean((Boolean) params
                        .get("ignore"), false), (String) params
                .get("preparer"), (String) params.get("role"), params
                .get("defaultValue"), (String) params.get("defaultValueRole"),
                (String) params.get("defaultValueType"), (String) params
                        .get("name"), (Attribute) params.get("value"), context,
                request, response, writer);
    }

}

File Line
org/apache/tiles/velocity/template/GetAsStringVModel.java 98
org/apache/tiles/velocity/template/InsertAttributeVModel.java 91
                                .get("ignore"), false), velocityContext,
                        request, response, writer);
                return true;
            }
        };
    }

    /** {@inheritDoc} */
    public void start(HttpServletRequest request, HttpServletResponse response,
            Context velocityContext, Map<String, Object> params) {
        VelocityUtil.getParameterStack(velocityContext).push(params);
        model.start(ServletUtil.getComposeStack(request), ServletUtil.getCurrentContainer(request, servletContext),
                VelocityUtil.toSimpleBoolean((Boolean) params.get("ignore"), false),
                (String) params.get("preparer"), (String) params.get("role"),
                params.get("defaultValue"), (String) params.get("defaultValueRole"),
                (String) params.get("defaultValueType"), (String) params.get("name"),
                (Attribute) params.get("value"), velocityContext, request, response);

    }

    /** {@inheritDoc} */
    public Renderable execute(HttpServletRequest request,

File Line
org/apache/tiles/velocity/template/InsertDefinitionVModel.java 87
org/apache/tiles/velocity/template/InsertTemplateVModel.java 87
                        servletContext), (String) params.get("template"),
                        (String) params.get("templateType"), (String) params
                                .get("templateExpression"), (String) params.get("role"),
                        (String) params
                                .get("preparer"), velocityContext, request, response,
                        writer);
                return true;
            }
        };
    }

    /** {@inheritDoc} */
    public Renderable end(HttpServletRequest request, HttpServletResponse response,
            Context velocityContext) {
        Map<String, Object> params = VelocityUtil.getParameterStack(
                velocityContext).pop();
        return new AbstractDefaultToStringRenderable(velocityContext, params, response, request) {

            public boolean render(InternalContextAdapter context, Writer writer)
                    throws IOException {
                model.end(ServletUtil.getCurrentContainer(request,
                        servletContext), (String) params.get("template"),

File Line
org/apache/tiles/velocity/template/InsertDefinitionDirective.java 85
org/apache/tiles/velocity/template/InsertTemplateDirective.java 84
        model.end(ServletUtil.getCurrentContainer(request, servletContext),
                (String) params.get("template"), (String) params
                        .get("templateType"), (String) params
                        .get("templateExpression"),
                (String) params.get("role"), (String) params.get("preparer"),
                context, request, response, writer);
    }

    /** {@inheritDoc} */
    @Override
    protected void start(InternalContextAdapter context, Writer writer,
            Map<String, Object> params, HttpServletRequest request,
            HttpServletResponse response, ServletContext servletContext) {
        model.start(ServletUtil.getCurrentContainer(request, servletContext),
                context, request, response);
    }

}

File Line
org/apache/tiles/velocity/template/GetAsStringDirective.java 101
org/apache/tiles/velocity/template/GetAsStringVModel.java 109
        model.start(ServletUtil.getComposeStack(request), ServletUtil
                .getCurrentContainer(request, servletContext), VelocityUtil
                .toSimpleBoolean((Boolean) params.get("ignore"), false),
                (String) params.get("preparer"), (String) params.get("role"),
                params.get("defaultValue"), (String) params
                        .get("defaultValueRole"), (String) params
                        .get("defaultValueType"), (String) params.get("name"),
                (Attribute) params.get("value"), velocityContext, request,