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