CloneSet402


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10440.971class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11076
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java
21093
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java
310110
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java
410129
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java
Clone Instance
1
Line Count
10
Source Line
76
Source File
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;
}


Clone Instance
2
Line Count
10
Source Line
93
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java

/**
 * 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;
}


Clone Instance
3
Line Count
10
Source Line
110
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java

/**
 * 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;
}


Clone Instance
4
Line Count
10
Source Line
129
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/BuildContext.java

/**
 * 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;
}


Clone AbstractionParameter Count: 4Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#965291a0]]
recordAddedGeneratedFiles 
12[[#965291a0]]
recordDeletedGeneratedFiles 
13[[#965291a0]]
recordDependencies 
14[[#965291a0]]
recordNewProblems 
21[[#96529120]]
IFile 
22[[#96529120]]
IFile 
23[[#96529120]]
String 
24[[#96529120]]
CategorizedProblem 
31[[#965290a0]]
addedGeneratedFiles 
32[[#965290a0]]
deletedGeneratedFiles 
33[[#965290a0]]
typeNameDependencies 
34[[#965290a0]]
newProblems 
41[[#96528ee0]]
addedFiles 
42[[#96528ee0]]
deletedFiles 
43[[#96528ee0]]
dependencies 
44[[#96528ee0]]
problems