XMLReader reader = null; try { reader = (XMLReader) instantiate(getPropDefault("xml.parser", // $NON-NLS-1$ "org.apache.xerces.parsers.SAXParser"), // $NON-NLS-1$ "org.xml.sax.XMLReader"); // $NON-NLS-1$ // reader = xmlFactory.newSAXParser().getXMLReader(); } catch (Exception e) { reader = (XMLReader) instantiate(getPropDefault("xml.parser", // $NON-NLS-1$ "org.apache.xerces.parsers.SAXParser"), // $NON-NLS-1$ "org.xml.sax.XMLReader"); // $NON-NLS-1$ } return reader;
String ans = null; try { ans = appProperties.getProperty(propName); } catch (Exception e) { ans = null; } return ans;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/JMeterUtils.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/JMeterUtils.java
Method name: XMLReader getXMLParser() Method name: String getProperty(String)
Number of AST nodes: 4 Number of AST nodes: 4
1
XMLReader reader = null;
1
String ans = null;
2
		try {
2
		try {
3
			reader = (XMLReader) instantiate(getPropDefault("xml.parser", // $NON-NLS-1$
3
			
4
					"org.apache.xerces.parsers.SAXParser"), // $NON-NLS-1$
5
					"org.xml.sax.XMLReader"); // $NON-NLS-1$
6
			// reader = xmlFactory.newSAXParser().getXMLReader();
7
		} catch (Exception e) {
8
			reader = (XMLReader) instantiate(getPropDefault("xml.parser", // $NON-NLS-1$
9
					"org.apache.xerces.parsers.SAXParser"), // $NON-NLS-1$
10
					"org.xml.sax.XMLReader"); // $NON-NLS-1$
4
ans = appProperties.getProperty(propName);
5
		} catch (Exception e) {
6
			ans = null;
11
		}
7
		}
12
		return reader;
8
		return ans;
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are declared in the same class
Number of node comparisons1