Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.974 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 117 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Util.java |
2 | 15 | 248 | plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaAppletLaunchConfigurationDelegate.java |
| ||||
// resize contents if needed if (contentsLength + amountRequested > contents.length) { System.arraycopy( contents, 0, contents = new byte[contentsLength + amountRequested], 0, contentsLength); } // read as many bytes as possible amountRead = stream.read(contents, contentsLength, amountRequested); if (amountRead > 0) { // remember length of contents contentsLength += amountRead; } |
| ||||
// resize contents if needed if (contentsLength + available > contents.length) { System.arraycopy( contents, 0, contents = new byte[contentsLength + available], 0, contentsLength); } // read as many bytes as possible bytesRead = stream.read(contents, contentsLength, available); if (bytesRead > 0) { // remember length of contents contentsLength += bytesRead; } |
| |||
// resize contents if needed if (contentsLength + [[#variable5a1f3600]] > contents.length) { System.arraycopy(contents, 0, contents = new byte[contentsLength + [[#variable5a1f3600]]], 0, contentsLength); } [[#variable5a1f35e0]]= stream.read(contents, contentsLength, [[#variable5a1f3600]]); if ( [[#variable5a1f35e0]] > 0) { // remember length of contents contentsLength += [[#variable5a1f35e0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5a1f3600]] | available |
1 | 2 | [[#5a1f3600]] | amountRequested |
2 | 1 | [[#5a1f35e0]] | // read as many bytes as possible bytesRead |
2 | 2 | [[#5a1f35e0]] | // read as many bytes as possible amountRead |