Font curFont = panelTitleLabel.getFont();
int curFontSize = curFont.getSize();
curFontSize += 4;
panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));
mainPanel.add(panelTitleLabel);
// NAME
mainPanel.add(getNamePanel());
Font curFont = panelTitleLabel.getFont();
int curFontSize = curFont.getSize();
curFontSize += 4;
panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));
mainPanel.add(panelTitleLabel);
// NAME
mainPanel.add(getNamePanel());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSSubscriberGui.java
|
Method name: void init()
|
|
Method name: void init()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | Font curFont = panelTitleLabel.getFont();↵ | | 1 | Font curFont = panelTitleLabel.getFont();↵
|
2 | int curFontSize = curFont.getSize();↵ | | 2 | int curFontSize = curFont.getSize();↵
|
3 | curFontSize += 4;↵ | | 3 | curFontSize += 4;↵
|
4 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));↵ | | 4 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));↵
|
5 | mainPanel.add(panelTitleLabel);↵ | | 5 | mainPanel.add(panelTitleLabel);↵
|
6 | // NAME↵ | | 6 | // NAME↵
|
7 | mainPanel.add(getNamePanel()); | | 7 | mainPanel.add(getNamePanel());
|
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 | 20 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
7 | Font curFont = panelTitleLabel.getFont(); | | 7 | Font curFont = panelTitleLabel.getFont(); |
8 | int curFontSize = curFont.getSize(); | | 8 | int curFontSize = curFont.getSize(); |
9 | curFontSize += 4; | | 9 | curFontSize += 4; |
10 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize)); | | 10 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize)); |
11 | mainPanel.add(panelTitleLabel); | | 11 | mainPanel.add(panelTitleLabel); |
12 | mainPanel.add(getNamePanel()); | | 12 | mainPanel.add(getNamePanel()); |
Precondition Violations (0)
Row |
Violation |