if (entered || !mousehover) { Rectangle r = g.getClipBounds(); g.drawLine(0, r.height - this.getFontMetrics(this.getFont()).getDescent(), this.getFontMetrics(this.getFont()).stringWidth(this.getText()), r.height - this.getFontMetrics(this.getFont()).getDescent()); }
if (entered || !mousehover) { Rectangle r = g.getClipBounds(); g.drawLine(0, r.height - this.getFontMetrics(this.getFont()).getDescent(), this.getFontMetrics(this.getFont()).stringWidth(this.getText()), r.height - this.getFontMetrics(this.getFont()).getDescent()); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/LinkLabel.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/URLLabel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (entered || !mousehover) {
1
if (entered || !mousehover) {
2
            Rectangle r = g.getClipBounds();
2
            Rectangle r = g.getClipBounds();
3
            g.drawLine(0,
3
            g.drawLine(0,
4
                r.height - this.getFontMetrics(this.getFont()).getDescent(),
4
                r.height - this.getFontMetrics(this.getFont()).getDescent(),
5
                this.getFontMetrics(this.getFont()).stringWidth(this.getText()),
5
                this.getFontMetrics(this.getFont()).stringWidth(this.getText()),
6
                r.height - this.getFontMetrics(this.getFont()).getDescent());
6
                r.height - this.getFontMetrics(this.getFont()).getDescent());
7
        }
7
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0