_pathArrow.closePath();
g2.setPaint(new GradientPaint(0, 0, Color.white,
//SystemColor.controlLtHighlight,
0, h, SystemColor.controlShadow));
g2.fill(_pathArrow);
_pathArrow.reset();
_pathArrow.closePath();
g2.setPaint(new GradientPaint(0, 0, Color.white,
//SystemColor.controlLtHighlight,
0, h, SystemColor.controlShadow));
g2.fill(_pathArrow);
_pathArrow.reset();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/tree/util/CArrowImage.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/tree/util/CArrowImage.java
|
Method name: void CArrowImage(int, int, int)
|
|
Method name: void CArrowImage(int, int, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | _pathArrow.closePath();↵ | | 1 | _pathArrow.closePath();↵
|
2 | g2.setPaint(new GradientPaint(0, 0, Color.white, ↵ | | 2 | g2.setPaint(new GradientPaint(0, 0, Color.white, ↵
|
3 | //SystemColor.controlLtHighlight,↵ | | 3 | //SystemColor.controlLtHighlight,↵
|
4 | 0, h, SystemColor.controlShadow));↵ | | 4 | 0, h, SystemColor.controlShadow));↵
|
5 | g2.fill(_pathArrow);↵ | | 5 | g2.fill(_pathArrow);↵
|
|
6 | _pathArrow.reset(); | | 6 | _pathArrow.reset();
|
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 the same method |
Number of node comparisons | 16 |
-
{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 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
54 | _pathArrow.closePath(); | | 85 | _pathArrow.closePath(); |
55 | g2.setPaint(new GradientPaint(0, 0, Color.white, 0, h, SystemColor.controlShadow)); | | 86 | g2.setPaint(new GradientPaint(0, 0, Color.white, 0, h, SystemColor.controlShadow)); |
56 | g2.fill(_pathArrow); | | 87 | g2.fill(_pathArrow); |
57 | _pathArrow.reset(); | | 88 | _pathArrow.reset(); |
Precondition Violations (0)
Row |
Violation |