int ans; try { ans = (Integer.valueOf(appProperties.getProperty(propName, Integer.toString(defaultVal)).trim())) .intValue(); } catch (Exception e) { ans = defaultVal; } return ans;
String ans; try { ans = appProperties.getProperty(propName, defaultVal).trim(); } catch (Exception e) { ans = defaultVal; } 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: int getPropDefault(String, int) Method name: String getPropDefault(String, String)
Number of AST nodes: 4 Number of AST nodes: 4
1
int ans;
1
String ans;
2
		try {
2
		try {
3
			ans = (Integer.valueOf(appProperties.getProperty(propName, Integer.toString(defaultVal)).trim()))
3
			ans = appProperties.getProperty(propName, defaultVal).trim()
4
					.intValue();
4
;
5
		} catch (Exception e) {
5
		} catch (Exception e) {
6
			ans = defaultVal;
6
			ans = defaultVal;
7
		}
7
		}
8
		return ans;
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