Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 1 | 0.983 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 133 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/SubstitutionTextReader.java |
2 | 21 | 27 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/SingleCharReader.java |
| ||||
/* * @see Reader#read(char[],int,int) */ public int read(char cbuf[], int off, int len) throws IOException { int end = off + len; for (int i = off; i < end; i++) { int ch = read(); if (ch == -1) { if (i == off) { return -1; } else { return i - off; } } cbuf[i] = (char) ch; } return len; } /* * @see java.io.Reader#ready() */ public boolean ready() throws IOException { return fReader.ready(); } |
| ||||
/** * @see Reader#read(char[],int,int) */ public int read(char cbuf[], int off, int len) throws IOException { int end = off + len; for (int i = off; i < end; i++) { int ch = read(); if (ch == -1) { if (i == off) { return -1; } else { return i - off; } } cbuf[i] = (char) ch; } return len; } /** * @see Reader#ready() */ public boolean ready() throws IOException { return true; } |
| |||
/* * @see Reader#read(char[],int,int) */ /** * @see Reader#read(char[],int,int) */ public int read(char cbuf[], int off, int len) throws IOException { int end = off + len; for (int i = off; i < end; i++) { int ch = read(); if (ch == -1) { if (i == off) { return -1; } else { return i - off; } } cbuf[i] = (char) ch; } return len; } /* * @see java.io.Reader#ready() */ /** * @see Reader#ready() */ public boolean ready() throws IOException { return [[#variablea193d840]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a193d840]] | fReader.ready() |
1 | 2 | [[#a193d840]] | true |