CloneSet265


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31210.994statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1311512
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java
2311889
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java
Next
Last
Clone Instance
1
Line Count
31
Source Line
1512
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java

for (ETypeParameter eTypeParameter: eTypeParameters) {
  String name = eTypeParameter.getName();
  if (name != null) {
    int index = names.indexOf(name);
    if (index != -1) {
      if (diagnostics == null) {
        return false;
      }
      else {
        result = false;
        ETypeParameter otherETypeParameter = eTypeParameters.get(index);
        diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, UNIQUE_TYPE_PARAMETER_NAMES, "_UI_UniqueTypeParameterNames_diagnostic", new Object[] {
                                                                                                                                                                     name
                                                                                                                                                                   }, new Object[] {
                                                                                                                                                                                     eClassifier,
                                                                                                                                                                                     eTypeParameter,
                                                                                                                                                                                     otherETypeParameter
                                                                                                                                                                                   }, context));
      }
    }
  }
  names.add(name);
}
return result;


First
Previous
Clone Instance
2
Line Count
31
Source Line
1889
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java

for (ETypeParameter eTypeParameter: eTypeParameters) {
  String name = eTypeParameter.getName();
  if (name != null) {
    int index = names.indexOf(name);
    if (index != -1) {
      if (diagnostics == null) {
        return false;
      }
      else {
        result = false;
        ETypeParameter otherETypeParameter = eTypeParameters.get(index);
        diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, UNIQUE_TYPE_PARAMETER_NAMES, "_UI_UniqueTypeParameterNames_diagnostic", new Object[] {
                                                                                                                                                                     name
                                                                                                                                                                   }, new Object[] {
                                                                                                                                                                                     eOperation,
                                                                                                                                                                                     eTypeParameter,
                                                                                                                                                                                     otherETypeParameter
                                                                                                                                                                                   }, context));
      }
    }
  }
  names.add(name);
}
return result;


Clone AbstractionParameter Count: 1Parameter Bindings

for (ETypeParameter eTypeParameter: eTypeParameters) {
  String name = eTypeParameter.getName();
  if (name != null) {
    int index = names.indexOf(name);
    if (index != -1) {
      if (diagnostics == null) {
        return false;
      }
      else {
        result = false;
        ETypeParameter otherETypeParameter = eTypeParameters.get(index);
        diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, UNIQUE_TYPE_PARAMETER_NAMES, "_UI_UniqueTypeParameterNames_diagnostic", new Object[] {
                                                                                                                                                                     name
                                                                                                                                                                   }, new Object[] {
                                                                                                                                                                                      [[#variable171d6200]],
                                                                                                                                                                                     eTypeParameter,
                                                                                                                                                                                     otherETypeParameter
                                                                                                                                                                                   }, context));
      }
    }
  }
  names.add(name);
}
return result;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#171d6200]]
eClassifier 
12[[#171d6200]]
eOperation