public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
innerBorder.paintBorder(c, g, x, y, width, height);
Insets innerInsets = innerBorder.getBorderInsets(c);
iconBounds.x = x + innerInsets.left + spacing;
iconBounds.y = y + innerInsets.top + spacing;
icon.paintIcon(c, g, iconBounds.x, iconBounds.y);
public void paintBorder(Component c, Graphics g, int x, int y,
int width, int height) {
innerBorder.paintBorder(c, g, x, y, width, height);
Insets innerInsets = innerBorder.getBorderInsets(c);
iconBounds.x = x + innerInsets.left + spacing;
iconBounds.y = y + innerInsets.top + spacing;
icon.paintIcon(c, g, iconBounds.x, iconBounds.y);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/IconTextField.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/IconTextField.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void paintBorder(Component c, Graphics g, int x, int y, ↵ | | 1 | public void paintBorder(Component c, Graphics g, int x, int y,↵
|
2 | int width, int height) {↵ | | 2 | int width, int height) {↵
|
3 | innerBorder.paintBorder(c, g, x, y, width, height);↵ | | 3 | innerBorder.paintBorder(c, g, x, y, width, height);↵
|
4 | Insets innerInsets = innerBorder.getBorderInsets(c);↵ | | 4 | Insets innerInsets = innerBorder.getBorderInsets(c);↵
|
5 | iconBounds.x = x + innerInsets.left + spacing;↵ | | 5 | iconBounds.x = x + innerInsets.left + spacing;↵
|
6 | iconBounds.y = y + innerInsets.top + spacing;↵ | | 6 | iconBounds.y = y + innerInsets.top + spacing;↵
|
7 | icon.paintIcon(c, g, iconBounds.x, iconBounds.y);↵ | | 7 | icon.paintIcon(c, g, iconBounds.x, iconBounds.y);↵
|
8 | | | 8 |
|
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 |