This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 43484
Collapse All | Expand All

(-)DocumentLine.java (-4 / +2 lines)
Lines 197-212 Link Here
197
    }
197
    }
198
198
199
    public int hashCode () {
199
    public int hashCode () {
200
        return pos.getCloneableEditorSupport ().hashCode ();
200
        return pos.hashCode ();
201
    }
201
    }
202
202
203
    public boolean equals (Object o) {
203
    public boolean equals (Object o) {
204
        if (o instanceof DocumentLine) {
204
        if (o instanceof DocumentLine) {
205
            DocumentLine dl = (DocumentLine)o;
205
            DocumentLine dl = (DocumentLine)o;
206
            if (dl.pos.getCloneableEditorSupport () == pos.getCloneableEditorSupport ()) {
206
            return pos.equals(dl.pos);
207
                return dl.getLineNumber () == getLineNumber ();
208
            }
207
            }
209
        }
210
        return false;
208
        return false;
211
    }
209
    }
212
210

Return to bug 43484