CloneSet4095


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.970class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1939
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchDocument.java
2950
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchDocument.java
Clone Instance
1
Line Count
9
Source Line
39
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchDocument.java

        public byte[] getByteContents() {
                if (this.byteContents != null) return this.byteContents;
                try {
                        return Util.getResourceContentsAsByteArray(getFile());
                } catch (JavaModelException e) {
                        if (BasicSearchEngine.VERBOSE || JobManager.VERBOSE) { // used during search and during indexing
                                e.printStackTrace();
                        }
                        return null;
                  }
        }


Clone Instance
2
Line Count
9
Source Line
50
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchDocument.java

        public char[] getCharContents() {
                if (this.charContents != null) return this.charContents;
                try {
                        return Util.getResourceContentsAsCharArray(getFile());
                } catch (JavaModelException e) {
                        if (BasicSearchEngine.VERBOSE || JobManager.VERBOSE) { // used during search and during indexing
                                e.printStackTrace();
                        }
                        return null;
                  }
        }


Clone AbstractionParameter Count: 4Parameter Bindings

public [[#variablea18d5a00]][]  [[#variablea18d59a0]]() {
  if (this. [[#variablea18d5900]]!= null)
    return this. [[#variablea18d5900]];
  try {
    return Util. [[#variablea18d5860]](getFile());
  }
  catch (JavaModelException e) {
    if (BasicSearchEngine.VERBOSE || JobManager.VERBOSE) { // used during search and during indexing
      e.printStackTrace();
    }
    return null;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a18d5a00]]
byte 
12[[#a18d5a00]]
char 
21[[#a18d59a0]]
getByteContents 
22[[#a18d59a0]]
getCharContents 
31[[#a18d5900]]
byteContents 
32[[#a18d5900]]
charContents 
41[[#a18d5860]]
getResourceContentsAsByteArray 
42[[#a18d5860]]
getResourceContentsAsCharArray