CloneSet1349


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.967statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1111309
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java
2111322
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java
Clone Instance
1
Line Count
11
Source Line
1309
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java

                        IPath[] exlusions = (IPath[]) element.getAttribute(CPListElement.EXCLUSION);
                        if (exlusions != null) {
                                List exlusionList = new ArrayList(exlusions.length);
                                for (int i = 0; i < exlusions.length; i++) {
                                        if ( !exlusions[i].equals(path)) {
                                                exlusionList.add(exlusions[i]);
                                        }
                                        else   {
                                                hasChange = true;
                                        }
                                }
                                element.setAttribute(CPListElement.EXCLUSION, exlusionList.toArray(new IPath[exlusionList.size()]));
                        }


Clone Instance
2
Line Count
11
Source Line
1322
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ClasspathModifier.java

                        IPath[] inclusion = (IPath[]) element.getAttribute(CPListElement.INCLUSION);
                        if (inclusion != null) {
                                List inclusionList = new ArrayList(inclusion.length);
                                for (int i = 0; i < inclusion.length; i++) {
                                        if ( !inclusion[i].equals(path)) {
                                                inclusionList.add(inclusion[i]);
                                        }
                                        else   {
                                                hasChange = true;
                                        }
                                }
                                element.setAttribute(CPListElement.INCLUSION, inclusionList.toArray(new IPath[inclusionList.size()]));
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

IPath[]  [[#variable7737f500]]= (IPath[]) element.getAttribute(CPListElement. [[#variablebaca5c60]]);
if ( [[#variable7737f500]]!= null) {
  List  [[#variableb4fef8c0]]= new ArrayList( [[#variable7737f500]].length);
  for (int i = 0; i <  [[#variable7737f500]].length; i++) {
    if ( ! [[#variable7737f500]][i].equals(path)) {
       [[#variableb4fef8c0]].add( [[#variable7737f500]][i]);
    }
    else {
      hasChange = true;
    }
  }
  element.setAttribute(CPListElement. [[#variablebaca5c60]],  [[#variableb4fef8c0]].toArray(new IPath[ [[#variableb4fef8c0]].size()]));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7737f500]]
inclusion 
12[[#7737f500]]
exlusions 
21[[#baca5c60]]
INCLUSION 
22[[#baca5c60]]
EXCLUSION 
31[[#b4fef8c0]]
inclusionList 
32[[#b4fef8c0]]
exlusionList