The following document contains the results of PMD's CPD 3.7.
File | Line |
---|---|
org/apache/shale/remoting/faces/ResponseFactory.java | 105 |
org/apache/shale/remoting/faces/ResponseFactory.java | 158 |
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; |