File configPath = DefaultConfigDirectory.getInstance().getCurrentPath();
File defaultConfigPath = DefaultConfigDirectory.getDefaultPath();
while (!configPath.equals(defaultConfigPath)) {
configPath = configPath.getParentFile();
if (configPath == null) {
JOptionPane.showMessageDialog(dialog,
MailResourceLoader.getString("dialog",
"password", "warn_save_msg"),
MailResourceLoader.getString("dialog",
"password", "warn_save_title"),
JOptionPane.WARNING_MESSAGE);
return;
File configPath = DefaultConfigDirectory.getInstance().getCurrentPath();
File defaultConfigPath = DefaultConfigDirectory.getDefaultPath();
while (!configPath.equals(defaultConfigPath)) {
configPath = configPath.getParentFile();
if (configPath == null) {
JOptionPane.showMessageDialog(this, MailResourceLoader
.getString("dialog", "password",
"warn_save_msg"), MailResourceLoader
.getString("dialog", "password",
"warn_save_title"),
JOptionPane.WARNING_MESSAGE);
return;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/OutgoingServerPanel.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/util/PasswordDialog.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | File configPath = DefaultConfigDirectory.getInstance().getCurrentPath();↵ | | 1 | File configPath = DefaultConfigDirectory.getInstance().getCurrentPath();↵
|
2 | File defaultConfigPath = DefaultConfigDirectory.getDefaultPath();↵ | | 2 | File defaultConfigPath = DefaultConfigDirectory.getDefaultPath();↵
|
3 | while (!configPath.equals(defaultConfigPath)) {↵ | | 3 | while (!configPath.equals(defaultConfigPath)) {↵
|
4 | configPath = configPath.getParentFile();↵ | | 4 | configPath = configPath.getParentFile();↵
|
5 | if (configPath == null) {↵ | | 5 | if (configPath == null) {↵
|
6 | JOptionPane.showMessageDialog(dialog,↵ | | 6 | JOptionPane.showMessageDialog(↵
|
7 | MailResourceLoader↵ | | 7 | this, MailResourceLoader↵
|
8 | .getString("dialog",↵ | | 8 | .getString("dialog",↵
|
9 | "password", ↵ | | 9 | "password",↵
|
10 | "warn_save_msg"),↵ | | 10 | "warn_save_msg"),↵
|
11 | MailResourceLoader↵ | | 11 | MailResourceLoader↵
|
12 | .getString("dialog",↵ | | 12 | .getString("dialog",↵
|
13 | "password", ↵ | | 13 | "password",↵
|
14 | "warn_save_title"),↵ | | 14 | "warn_save_title"),↵
|
15 | JOptionPane.WARNING_MESSAGE);↵ | | 15 | JOptionPane.WARNING_MESSAGE);↵
|
16 | return;↵ | | 16 | return;↵
|
17 | | | 17 |
|
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 |