2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

CPD Results

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

Duplications

FileLine
org/apache/shale/remoting/faces/ResponseFactory.java105
org/apache/shale/remoting/faces/ResponseFactory.java158
    protected ResponseWriter createResponseWriter(FacesContext context, String contentType) {

        Object response = context.getExternalContext().getResponse();

        // Set the content type (if specified)
        if (contentType != null) {
            try {
                Method method =
                  response.getClass().getMethod("setContentType",
                                                new Class[] { String.class });
                method.invoke(response, new Object[] { contentType });
            } catch (IllegalAccessException e) {
                throw new FacesException(e);
            } catch (InvocationTargetException e) {
                throw new FacesException(e);
            } catch (NoSuchMethodException e) {
                throw new FacesException(e);
            }
        }

        // Acquire the writer we will be wrapping
        final Writer writer;