CloneSet436


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20310.964switch_group
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120398
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
220167
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Member.java
320311
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java
Clone Instance
1
Line Count
20
Source Line
398
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java

                case JEM_TYPE:
                        String typeName;
                        if (memento.hasMoreTokens()) {
                                typeName = memento.nextToken();
                                char firstChar = typeName.charAt(0);
                                if (firstChar == JEM_FIELD || firstChar == JEM_INITIALIZER || firstChar == JEM_METHOD || firstChar == JEM_TYPE || firstChar == JEM_COUNT) {
                                        token = typeName;
                                        typeName = ""; //$NON-NLS-1$
                                }
                                else   {
                                        token = null;
                                }
                        }
                        else   {
                                typeName = ""; //$NON-NLS-1$
                                token = null;
                        }
                        JavaElement type = (JavaElement) getType(typeName);
                        if (token == null) {
                                return type.getHandleFromMemento(memento, workingCopyOwner);
                        }
                        else   {
                                return type.getHandleFromMemento(token, memento, workingCopyOwner);
                        }


Clone Instance
2
Line Count
20
Source Line
167
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Member.java

                case JEM_TYPE:
                        String typeName;
                        if (memento.hasMoreTokens()) {
                                typeName = memento.nextToken();
                                char firstChar = typeName.charAt(0);
                                if (firstChar == JEM_FIELD || firstChar == JEM_INITIALIZER || firstChar == JEM_METHOD || firstChar == JEM_TYPE || firstChar == JEM_COUNT) {
                                        token = typeName;
                                        typeName = ""; //$NON-NLS-1$
                                }
                                else   {
                                        token = null;
                                }
                        }
                        else   {
                                typeName = ""; //$NON-NLS-1$
                                token = null;
                        }
                        JavaElement type = (JavaElement) getType(typeName, 1);
                        if (token == null) {
                                return type.getHandleFromMemento(memento, workingCopyOwner);
                        }
                        else   {
                                return type.getHandleFromMemento(token, memento, workingCopyOwner);
                        }


Clone Instance
3
Line Count
20
Source Line
311
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java

                case JEM_TYPE:
                        String typeName;
                        if (memento.hasMoreTokens()) {
                                typeName = memento.nextToken();
                                char firstChar = typeName.charAt(0);
                                if (firstChar == JEM_FIELD || firstChar == JEM_INITIALIZER || firstChar == JEM_METHOD || firstChar == JEM_TYPE || firstChar == JEM_COUNT) {
                                        token = typeName;
                                        typeName = ""; //$NON-NLS-1$
                                }
                                else   {
                                        token = null;
                                }
                        }
                        else   {
                                typeName = ""; //$NON-NLS-1$
                                token = null;
                        }
                        JavaElement type = (JavaElement) getType(typeName);
                        if (token == null) {
                                return type.getHandleFromMemento(memento, workingCopyOwner);
                        }
                        else   {
                                return type.getHandleFromMemento(token, memento, workingCopyOwner);
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

case JEM_TYPE:
  String typeName;
  if (memento.hasMoreTokens()) {
    typeName = memento.nextToken();
    char firstChar = typeName.charAt(0);
    if (firstChar == JEM_FIELD || firstChar == JEM_INITIALIZER || firstChar == JEM_METHOD || firstChar == JEM_TYPE || firstChar == JEM_COUNT) {
      token = typeName;
      typeName = ""; //$NON-NLS-1$
    }
    else {
      token = null;
    }
  }
  else {
    typeName = ""; //$NON-NLS-1$
    token = null;
  }
  JavaElement type = (JavaElement) getType( [[#variablebd387be0]]);
  if (token == null) {
    return type.getHandleFromMemento(memento, workingCopyOwner);
  }
  else {
    return type.getHandleFromMemento(token, memento, workingCopyOwner);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bd387be0]]
typeName 
12[[#bd387be0]]
typeName, 1 
13[[#bd387be0]]
typeName