Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.989 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 115 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyResourceElementsOperation.java |
2 | 8 | 60 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeleteResourceElementsOperation.java |
| ||||
// Gather non-java resources Object[] nonJavaResources = source.getNonJavaResources(); int actualNonJavaResourceCount = 0; for (int i = 0, max = nonJavaResources.length; i < max; i++) { if (nonJavaResources[i] instanceof IResource) actualNonJavaResourceCount++; } IResource[] actualNonJavaResources = new IResource[actualNonJavaResourceCount]; for (int i = 0, max = nonJavaResources.length, index = 0; i < max; i++) { if (nonJavaResources[i] instanceof IResource) actualNonJavaResources[index++ ] = (IResource) nonJavaResources[i]; } |
| ||||
// Discard non-java resources Object[] nonJavaResources = frag.getNonJavaResources(); int actualResourceCount = 0; for (int i = 0, max = nonJavaResources.length; i < max; i++) { if (nonJavaResources[i] instanceof IResource) actualResourceCount++; } IResource[] actualNonJavaResources = new IResource[actualResourceCount]; for (int i = 0, max = nonJavaResources.length, index = 0; i < max; i++) { if (nonJavaResources[i] instanceof IResource) actualNonJavaResources[index++ ] = (IResource) nonJavaResources[i]; } |
| |||
// Gather non-java resources // Discard non-java resources Object[] nonJavaResources = [[#variableb8cd81c0]].getNonJavaResources(); int [[#variableb8cd80a0]]= 0; for (int i = 0, max = nonJavaResources.length; i < max; i++) { if (nonJavaResources[i] instanceof IResource) [[#variableb8cd80a0]]++; } IResource[] actualNonJavaResources = new IResource[ [[#variableb8cd80a0]]]; for (int i = 0, max = nonJavaResources.length, index = 0; i < max; i++) { if (nonJavaResources[i] instanceof IResource) actualNonJavaResources[index++ ] = (IResource) nonJavaResources[i]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8cd81c0]] | source |
1 | 2 | [[#b8cd81c0]] | frag |
2 | 1 | [[#b8cd80a0]] | actualNonJavaResourceCount |
2 | 2 | [[#b8cd80a0]] | actualResourceCount |