if (tempFile.exists()) {
if (JOptionPane.showConfirmDialog(FrameManager.getInstance()
.getActiveFrame(), "Overwrite File?",
"Warning", JOptionPane.YES_NO_OPTION,
JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION) {
break;
}
} else {
break;
}
if (tempFile.exists()) {
if (JOptionPane.showConfirmDialog(FrameManager.getInstance()
.getActiveFrame(), "Overwrite File?",
"Warning", JOptionPane.YES_NO_OPTION,
JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION) {
break;
}
} else {
break;
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/OpenAttachmentCommand.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/SaveAttachmentAsCommand.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (tempFile.exists()) {↵ | | 1 | if (tempFile.exists()) {↵
|
2 | if (JOptionPane.showConfirmDialog(FrameManager.getInstance()↵ | | 2 | if (JOptionPane.showConfirmDialog(FrameManager.getInstance()↵
|
3 | .getActiveFrame(), "Overwrite File?",↵ | | 3 | .getActiveFrame(), "Overwrite File?",↵
|
4 | "Warning", JOptionPane.YES_NO_OPTION,↵ | | 4 | "Warning", JOptionPane.YES_NO_OPTION,↵
|
5 | JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION) {↵ | | 5 | JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION) {↵
|
6 | break;↵ | | |
|
7 | }↵ | | |
|
8 | } else {↵ | | |
|
9 | break;↵ | | |
|
10 | ↵ | | 6 | break;↵
|
| | | 7 | }↵
|
| | | 8 | } else {↵
|
| | | 9 | break;↵
|
11 | } | | 10 | }
|
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 | |
Number of node comparisons | 0 |