Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 4 | 4 | 0.971 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 76 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java |
2 | 10 | 93 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java |
3 | 10 | 110 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java |
4 | 10 | 129 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java |
| ||||
/** * Record the added/changed generated files that need to be compiled. * * @param addedGeneratedFiles the added/changed files */ public void recordAddedGeneratedFiles(IFile[] addedGeneratedFiles) { int length2 = addedGeneratedFiles.length; if (length2 == 0) return; int length1 = this.addedFiles == null ? 0: this.addedFiles.length; IFile[] merged = new IFile[length1 + length2]; if (length1 > 0) // always make a copy even if currently empty System.arraycopy(this.addedFiles, 0, merged, 0, length1); System.arraycopy(addedGeneratedFiles, 0, merged, length1, length2); this.addedFiles = merged; } |
| ||||
/** * Record the generated files that need to be deleted. * * @param deletedGeneratedFiles the files that need to be deleted */ public void recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles) { int length2 = deletedGeneratedFiles.length; if (length2 == 0) return; int length1 = this.deletedFiles == null ? 0: this.deletedFiles.length; IFile[] merged = new IFile[length1 + length2]; if (length1 > 0) // always make a copy even if currently empty System.arraycopy(this.deletedFiles, 0, merged, 0, length1); System.arraycopy(deletedGeneratedFiles, 0, merged, length1, length2); this.deletedFiles = merged; } |
| ||||
/** * Record the fully-qualified type names of any new dependencies, each name is of the form "p1.p2.A.B". * * @param typeNameDependencies the fully-qualified type names of new dependencies */ public void recordDependencies(String[] typeNameDependencies) { int length2 = typeNameDependencies.length; if (length2 == 0) return; int length1 = this.dependencies == null ? 0: this.dependencies.length; String[] merged = new String[length1 + length2]; if (length1 > 0) // always make a copy even if currently empty System.arraycopy(this.dependencies, 0, merged, 0, length1); System.arraycopy(typeNameDependencies, 0, merged, length1, length2); this.dependencies = merged; } |
| ||||
/** * Record new problems to report against this compilationUnit. * Markers are persisted for these problems only for the declared managed marker type * (see the 'compilationParticipant' extension point). * * @param newProblems the problems to report */ public void recordNewProblems(CategorizedProblem[] newProblems) { int length2 = newProblems.length; if (length2 == 0) return; int length1 = this.problems == null ? 0: this.problems.length; CategorizedProblem[] merged = new CategorizedProblem[length1 + length2]; if (length1 > 0) // always make a copy even if currently empty System.arraycopy(this.problems, 0, merged, 0, length1); System.arraycopy(newProblems, 0, merged, length1, length2); this.problems = merged; } |
| |||
/** * Record the added/changed generated files that need to be compiled. * * @param addedGeneratedFiles the added/changed files */ /** * Record the generated files that need to be deleted. * * @param deletedGeneratedFiles the files that need to be deleted */ /** * Record the fully-qualified type names of any new dependencies, each name is of the form "p1.p2.A.B". * * @param typeNameDependencies the fully-qualified type names of new dependencies */ /** * Record new problems to report against this compilationUnit. * Markers are persisted for these problems only for the declared managed marker type * (see the 'compilationParticipant' extension point). * * @param newProblems the problems to report */ public void [[#variable965291a0]]( [[#variable96529120]][] [[#variable965290a0]]) { int length2 = [[#variable965290a0]].length; if (length2 == 0) return; int length1 = this. [[#variable96528ee0]]== null ? 0: this. [[#variable96528ee0]].length; [[#variable96529120]][] merged = new [[#variable96529120]][length1 + length2]; if (length1 > 0) // always make a copy even if currently empty System.arraycopy(this. [[#variable96528ee0]], 0, merged, 0, length1); System.arraycopy( [[#variable965290a0]], 0, merged, length1, length2); this. [[#variable96528ee0]]= merged; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#965291a0]] | recordAddedGeneratedFiles |
1 | 2 | [[#965291a0]] | recordDeletedGeneratedFiles |
1 | 3 | [[#965291a0]] | recordDependencies |
1 | 4 | [[#965291a0]] | recordNewProblems |
2 | 1 | [[#96529120]] | IFile |
2 | 2 | [[#96529120]] | IFile |
2 | 3 | [[#96529120]] | String |
2 | 4 | [[#96529120]] | CategorizedProblem |
3 | 1 | [[#965290a0]] | addedGeneratedFiles |
3 | 2 | [[#965290a0]] | deletedGeneratedFiles |
3 | 3 | [[#965290a0]] | typeNameDependencies |
3 | 4 | [[#965290a0]] | newProblems |
4 | 1 | [[#96528ee0]] | addedFiles |
4 | 2 | [[#96528ee0]] | deletedFiles |
4 | 3 | [[#96528ee0]] | dependencies |
4 | 4 | [[#96528ee0]] | problems |