CloneSet602


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26201.000statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126360
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
226277
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java
Clone Instance
1
Line Count
26
Source Line
360
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java

                        String selector = memento.nextToken();
                        ArrayList params = new ArrayList();
                        nextParam: while (memento.hasMoreTokens()) {
                                token = memento.nextToken();
                                switch (token.charAt(0)) {
                                        case JEM_TYPE:
                                        case JEM_TYPE_PARAMETER:
                                                break nextParam;
                                        case JEM_METHOD:
                                                if ( !memento.hasMoreTokens()) return this ;
                                                String param = memento.nextToken();
                                                StringBuffer buffer = new StringBuffer();
                                                while (param.length() == 1 && Signature.C_ARRAY == param.charAt(0)) { // backward compatible with 3.0 mementos
                                                        buffer.append(Signature.C_ARRAY);
                                                        if ( !memento.hasMoreTokens()) return this ;
                                                        param = memento.nextToken();
                                                }
                                                params.add(buffer.toString() + param);
                                                break;
                                        default:
                                                break nextParam;
                                      }
                                   }
                        String[] parameters = new String[params.size()];
                        params.toArray(parameters);
                        JavaElement method = (JavaElement) getMethod(selector, parameters);


Clone Instance
2
Line Count
26
Source Line
277
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java

                        String selector = memento.nextToken();
                        ArrayList params = new ArrayList();
                        nextParam: while (memento.hasMoreTokens()) {
                                token = memento.nextToken();
                                switch (token.charAt(0)) {
                                        case JEM_TYPE:
                                        case JEM_TYPE_PARAMETER:
                                                break nextParam;
                                        case JEM_METHOD:
                                                if ( !memento.hasMoreTokens()) return this ;
                                                String param = memento.nextToken();
                                                StringBuffer buffer = new StringBuffer();
                                                while (param.length() == 1 && Signature.C_ARRAY == param.charAt(0)) { // backward compatible with 3.0 mementos
                                                        buffer.append(Signature.C_ARRAY);
                                                        if ( !memento.hasMoreTokens()) return this ;
                                                        param = memento.nextToken();
                                                }
                                                params.add(buffer.toString() + param);
                                                break;
                                        default:
                                                break nextParam;
                                      }
                                   }
                        String[] parameters = new String[params.size()];
                        params.toArray(parameters);
                        JavaElement method = (JavaElement) getMethod(selector, parameters);


Clone AbstractionParameter Count: 0Parameter Bindings

String selector = memento.nextToken();
ArrayList params = new ArrayList();
nextParam:
  while (memento.hasMoreTokens()) {
    token = memento.nextToken();
    switch (token.charAt(0)) {
      case JEM_TYPE:
      case JEM_TYPE_PARAMETER:
        break nextParam;
      case JEM_METHOD:
        if ( !memento.hasMoreTokens())
          return this ;
        String param = memento.nextToken();
        StringBuffer buffer = new StringBuffer();
        while (param.length() == 1 && Signature.C_ARRAY == param.charAt(0)) { // backward compatible with 3.0 mementos
          buffer.append(Signature.C_ARRAY);
          if ( !memento.hasMoreTokens())
            return this ;
          param = memento.nextToken();
        }
        params.add(buffer.toString() + param);
        break;
      default:
        break nextParam;
    }
  }
String[] parameters = new String[params.size()];
params.toArray(parameters);
JavaElement method = (JavaElement) getMethod(selector, parameters);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None