Comparable k1 = getKey(i); Comparable k2 = that.getKey(i); if (!k1.equals(k2)) { return false; } Object o1 = getObject(i); Object o2 = that.getObject(i); if (o1 == null) { if (o2 != null) { return false; } } else { if (!o1.equals(o2)) { return false;
Comparable k1 = getKey(i); Comparable k2 = that.getKey(i); if (!k1.equals(k2)) { return false; } Number v1 = getValue(i); Number v2 = that.getValue(i); if (v1 == null) { if (v2 != null) { return false; } } else { if (!v1.equals(v2)) { return false;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/data/KeyedObjects.java File path: /jfreechart-1.0.10/src/org/jfree/data/general/DefaultPieDataset.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Comparable k1 = getKey(i);
1
Comparable k1 = getKey(i);
2
            Comparable k2 = that.getKey(i);
2
            Comparable k2 = that.getKey(i);
3
            if (!k1.equals(k2)) {
3
            if (!k1.equals(k2)) {
4
                return false;
4
                return false;
5
            }
5
            }
6
            Object o1 = getObject(i);
6
            Number v1 = getValue(i);
7
            Object o2 = that.getObject(i);
7
            Number v2 = that.getValue(i);
8
            if (o1 == null) {
8
            if (v1 == null) {
9
                if (o2 != null) {
9
                if (v2 != null) {
10
                    return false;
10
                    return false;
11
                }
11
                }
12
            }
12
            }
13
            else {
13
            else {
14
                if (!o1.equals(o2)) {
14
                if (!v1.equals(v2)) {
15
                    return false;
15
                    return false;
16
                
16
                
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