if (isResetInterpreter()) { try { bshInterpreter.reset(); } catch (ClassNotFoundException e) { log.error("Cannot reset BeanShell: "+e.toString()); } }
if (responseCode != null) { try { responseLevel = Integer.parseInt(responseCode) / 100; } catch (NumberFormatException numberFormatException) { // no need to change the foreground color } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/BeanShellTestElement.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Method name: BeanShellInterpreter getBeanShellInterpreter() Method name: void valueChanged(TreeSelectionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (isResetInterpreter()) {
1
if (
2
            try {
3
                bshInterpreter.reset();
4
            } catch (ClassNotFoundException e) {
5
                log.error("Cannot reset BeanShell: "+e.toString());
6
            }
7
        
2
responseCode != null) {
3
						try {
4
							responseLevel = Integer.parseInt(responseCode) / 100;
5
						} catch (NumberFormatException numberFormatException) {
6
							// no need to change the foreground color
7
						}
8
}
8
					}
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 in different classes
Number of node comparisons1