if (clazz != null){
// log.info("class " + clazz.getClass().getName() +
// " method name is " + RUNTEST);
try {
Class[] param = {TestResult.class};
return clazz.getClass().getMethod(RUNTEST,param);
} catch (NoSuchMethodException e) {
log.warn(e.getMessage());
}
}
try {
final JFileChooser chooser = FileDialoger.promptToSaveFile(null);
if (chooser != null) {
headerManager.save(chooser.getSelectedFile().getAbsolutePath());
}
} catch (IOException ex) {
log.error("Could not save headers", ex);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HeaderPanel.java
|
Method name: Method getRunTestMethod(Object)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (clazz != null){↵ | | |
|
2 | // log.info("class " + clazz.getClass().getName() +↵ | | |
|
3 | // " method name is " + RUNTEST);↵ | | |
|
4 | try {↵ | | |
|
5 | Class[] param = {TestResult.class};↵ | | |
|
6 | return clazz.getClass().getMethod(RUNTEST,param);↵ | | |
|
7 | } catch (NoSuchMethod↵ | | 1 | try {↵
|
| | | 2 | final JFileChooser chooser = FileDialoger.promptToSaveFile(null);↵
|
| | | 3 | if (chooser != null) {↵
|
| | | 4 | headerManager.save(chooser.getSelectedFile().getAbsolutePath());↵
|
| | | 5 | }↵
|
8 | Exception e) {↵ | | 6 | } catch (IOException ex) {↵
|
9 | log.warn(e.getMessage());↵ | | |
|
10 | }↵ | | |
|
11 | ↵ | | 7 | log.error("Could not save headers", ex);↵
|
12 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |