CPD Results
The following document contains the results of PMD's CPD 4.2.5.
Duplications
| File | Line |
|---|---|
| org/apache/myfaces/commons/resourcehandler/config/MyFacesResourceHandlerConfigParser.java | 245 |
| org/apache/myfaces/commons/resourcehandler/webapp/config/impl/WebXmlConfigParser.java | 280 |
urlPatterns.add(captureBuffer());
}
}
catch (Exception e)
{
SAXException saxe = new SAXException("Error Handling [" + this.source + "@"
+ this.locator.getLineNumber() + "," + this.locator.getColumnNumber() + "] <" + qName + ">");
saxe.initCause(e);
throw saxe;
}
}
public void characters(char[] ch, int start, int length) throws SAXException
{
this.buffer.append(ch, start, length);
}
private String captureBuffer() throws Exception
{
String s = this.buffer.toString().trim();
if (s.length() == 0)
{
throw new Exception("Value Cannot be Empty");
}
this.buffer.setLength(0);
return s;
}
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
{
return null;
}
public void error(SAXParseException e) throws SAXException
{
SAXException saxe = new SAXException("Error Handling [" + this.source + "@" + e.getLineNumber() + ","
+ e.getColumnNumber() + "]");
saxe.initCause(e);
throw saxe;
}
public void setDocumentLocator(Locator locator)
{
this.locator = locator;
}
public void fatalError(SAXParseException e) throws SAXException
{
throw e;
}
public void warning(SAXParseException e) throws SAXException
{
throw e;
}
}
} | |