CloneSet1126


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131574
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathEntry.java
2131744
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathEntry.java
Clone Instance
1
Line Count
13
Source Line
1574
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathEntry.java

                                                        // Validate extra attributes
                                                        IClasspathAttribute[] extraAttributes = entry.getExtraAttributes();
                                                        if (extraAttributes != null) {
                                                                int length = extraAttributes.length;
                                                                HashSet set = new HashSet(length);
                                                                for (int i = 0; i < length; i++) {
                                                                        String attName = extraAttributes[i].getName();
                                                                        if ( !set.add(attName)) {
                                                                                return new JavaModelStatus(IJavaModelStatusConstants.NAME_COLLISION, Messages.bind(Messages.classpath_duplicateEntryExtraAttribute, new String[] {
                                                                                                                                                                                                                                  attName, entryPathMsg, projectName
                                                                                                                                                                                                                                 } ));
                                                                        }
                                                                }
                                                        }
                                                        // don't create a marker if initialization is in progress (case of cp initialization batching)
                                                        return JavaModelStatus.VERIFIED_OK;


Clone Instance
2
Line Count
13
Source Line
1744
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathEntry.java

                // Validate extra attributes
                IClasspathAttribute[] extraAttributes = entry.getExtraAttributes();
                if (extraAttributes != null) {
                        int length = extraAttributes.length;
                        HashSet set = new HashSet(length);
                        for (int i = 0; i < length; i++) {
                                String attName = extraAttributes[i].getName();
                                if ( !set.add(attName)) {
                                        return new JavaModelStatus(IJavaModelStatusConstants.NAME_COLLISION, Messages.bind(Messages.classpath_duplicateEntryExtraAttribute, new String[] {
                                                                                                                                                                                          attName, entryPathMsg, projectName
                                                                                                                                                                                         } ));
                                }
                        }
                }
                return JavaModelStatus.VERIFIED_OK;


Clone AbstractionParameter Count: 0Parameter Bindings

// Validate extra attributes
IClasspathAttribute[] extraAttributes = entry.getExtraAttributes();
if (extraAttributes != null) {
  int length = extraAttributes.length;
  HashSet set = new HashSet(length);
  for (int i = 0; i < length; i++) {
    String attName = extraAttributes[i].getName();
    if ( !set.add(attName)) {
      return new JavaModelStatus(IJavaModelStatusConstants.NAME_COLLISION, Messages.bind(Messages.classpath_duplicateEntryExtraAttribute, new String[] {
                                                                                                                                                         attName,
                                                                                                                                                         entryPathMsg,
                                                                                                                                                         projectName
                                                                                                                                                       } ));
    }
  }
}
// don't create a marker if initialization is in progress (case of cp initialization batching)
return JavaModelStatus.VERIFIED_OK;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None