public void paint(Graphics g) { super.paint(g); 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());
public void paint(Graphics g) { super.paint(g); 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
public void paint(Graphics g) {
1
public void paint(Graphics g) {
2
        super.paint(g);
2
        super.paint(g);
3
        if (entered || !mousehover) {
3
        if (entered || !mousehover) {
4
            Rectangle r = g.getClipBounds();
4
            Rectangle r = g.getClipBounds();
5
            g.drawLine(0,
5
            g.drawLine(0,
6
                r.height - this.getFontMetrics(this.getFont()).getDescent(),
6
                r.height - this.getFontMetrics(this.getFont()).getDescent(),
7
                this.getFontMetrics(this.getFont()).stringWidth(this.getText()),
7
                this.getFontMetrics(this.getFont()).stringWidth(this.getText()),
8
                r.height - this.getFontMetrics(this.getFont()).getDescent());
8
                r.height - this.getFontMetrics(this.getFont()).getDescent());
9
        
9
        
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