CloneSet1042


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.976statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114346
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java
21553
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java
Clone Instance
1
Line Count
14
Source Line
346
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java

                int readOffset = offset + 8;
                AnnotationInfo[] newInfos = null;
                int newInfoCount = 0;
                for (int i = 0; i < numberOfAnnotations; i++) {
                        // With the last parameter being 'false', the data structure will not be flushed out
                        AnnotationInfo newInfo = new AnnotationInfo(this.reference, this.constantPoolOffsets, readOffset, runtimeVisible, false);
                        readOffset += newInfo.readOffset;
                        long standardTagBits = newInfo.standardAnnotationTagBits;
                        if (standardTagBits != 0) {
                                this.tagBits |= standardTagBits;
                        }
                        else   {
                                if (newInfos == null)
                                        newInfos = new AnnotationInfo[numberOfAnnotations - i];
                                newInfos[newInfoCount++ ] = newInfo;
                        }
                }


Clone Instance
2
Line Count
15
Source Line
53
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java

                int readOffset = offset + 8;
                AnnotationInfo[] newInfos = null;
                int newInfoCount = 0;
                for (int i = 0; i < numberOfAnnotations; i++) {
                        // With the last parameter being 'false', the data structure will not be flushed out
                        AnnotationInfo newInfo = new AnnotationInfo(this.reference, this.constantPoolOffsets, 
                                readOffset + this.structOffset      , runtimeVisible, false);
                        readOffset += newInfo.readOffset;
                        long standardTagBits = newInfo.standardAnnotationTagBits;
                        if (standardTagBits != 0) {
                                this.tagBits |= standardTagBits;
                        }
                        else   {
                                if (newInfos == null)
                                        newInfos = new AnnotationInfo[numberOfAnnotations - i];
                                newInfos[newInfoCount++ ] = newInfo;
                        }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

int readOffset = offset + 8;
AnnotationInfo[] newInfos = null;
int newInfoCount = 0;
for (int i = 0; i < numberOfAnnotations; i++) {
  // With the last parameter being 'false', the data structure will not be flushed out
  AnnotationInfo newInfo = new AnnotationInfo(this.reference, this.constantPoolOffsets,  [[#variable59888280]], runtimeVisible, false);
  readOffset += newInfo.readOffset;
  long standardTagBits = newInfo.standardAnnotationTagBits;
  if (standardTagBits != 0) {
    this.tagBits |= standardTagBits;
  }
  else {
    if (newInfos == null)
      newInfos = new AnnotationInfo[numberOfAnnotations - i];
    newInfos[newInfoCount++ ] = newInfo;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59888280]]
readOffset 
12[[#59888280]]
readOffset + this.structOffset