if (CodeWriter.CHECK) { if (this.owner == null) { this.owner = owner; } else if (this.owner != owner) { throw new IllegalArgumentException(); } }
if (CodeWriter.CHECK) { if (this.owner == null) { this.owner = owner; } if (resolved || this.owner != owner) { throw new IllegalArgumentException(); } }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/objectweb/asm/Label.java File path: /jEdit-4.2/src/org/objectweb/asm/Label.java
Method name: void put(CodeWriter, ByteVector, int, boolean) Method name: boolean resolve(CodeWriter, int, byte[])
Number of AST nodes: 5 Number of AST nodes: 5
1
if (CodeWriter.CHECK) {
1
if (CodeWriter.CHECK) {
2
      if (this.owner == null) {
2
      if (this.owner == null) {
3
        this.owner = owner;
3
        this.owner = owner;
4
      } else if (
4
      }
5
this.owner != owner) {
5
      if (resolved || this.owner != owner) {
6
        throw new IllegalArgumentException();
6
        throw new IllegalArgumentException();
7
      }
7
      }
8
    }
8
    }
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.4
Clones locationClones are declared in the same class
Number of node comparisons4