Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 4 | 0.970 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 39 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchDocument.java |
2 | 9 | 50 | 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; } } |
| ||||
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; } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a18d5a00]] | byte |
1 | 2 | [[#a18d5a00]] | char |
2 | 1 | [[#a18d59a0]] | getByteContents |
2 | 2 | [[#a18d59a0]] | getCharContents |
3 | 1 | [[#a18d5900]] | byteContents |
3 | 2 | [[#a18d5900]] | charContents |
4 | 1 | [[#a18d5860]] | getResourceContentsAsByteArray |
4 | 2 | [[#a18d5860]] | getResourceContentsAsCharArray |