addressLabel.setLabelFor(hostTextField);
middlePanel.addTextField(hostTextField);
JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString(
"dialog", "accountwizard", "example") +
"mail.microsoft.com");
middlePanel.addExample(addressExampleLabel);
addressLabel.setLabelFor(hostTextField);
middlePanel.addTextField(hostTextField);
JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString(
"dialog", "accountwizard", "example") +
"mail.microsoft.com");
middlePanel.addExample(addressExampleLabel);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountwizard/IncomingServerStep.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountwizard/OutgoingServerStep.java
|
Method name: JComponent createComponent()
|
|
Method name: JComponent createComponent()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | addressLabel.setLabelFor(hostTextField);↵ | | 1 | addressLabel.setLabelFor(hostTextField);↵
|
2 | middlePanel.addTextField(hostTextField);↵ | | 2 | middlePanel.addTextField(hostTextField);↵
|
|
3 | JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString(↵ | | 3 | JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString(↵
|
4 | "dialog", "accountwizard", "example") +↵ | | 4 | "dialog", "accountwizard", "example") +↵
|
5 | "mail.microsoft.com");↵ | | 5 | "mail.microsoft.com");↵
|
6 | middlePanel.addExample(addressExampleLabel); | | 6 | middlePanel.addExample(addressExampleLabel);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 having the same super class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
24 | addressLabel.setLabelFor(hostTextField); | | 14 | addressLabel.setLabelFor(hostTextField); |
25 | middlePanel.addTextField(hostTextField); | | 15 | middlePanel.addTextField(hostTextField); |
26 | JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString("dialog", "accountwizard", "example") + "mail.microsoft.com"); | | 16 | JLabel addressExampleLabel = new JLabel(MailResourceLoader.getString("dialog", "accountwizard", "example") + "mail.microsoft.com"); |
27 | middlePanel.addExample(addressExampleLabel); | | 17 | middlePanel.addExample(addressExampleLabel); |
Precondition Violations (0)
Row |
Violation |