CloneSet1865


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110183
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveCuUpdateCreator.java
210206
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveCuUpdateCreator.java
Clone Instance
1
Line Count
10
Source Line
183
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveCuUpdateCreator.java

                String old = importDecl.getElementName();
                int oldPackLength = movedUnit.getParent().getElementName().length();

                StringBuffer result = new StringBuffer(fDestination.getElementName());
                if (oldPackLength == 0) // move FROM default package
                        result.append('.').append(old);
                else if (result.length() == 0) // move TO default package
                        result.append(old.substring(oldPackLength + 1)); // cut "."
                     else
                        result.append(old.substring(oldPackLength));


Clone Instance
2
Line Count
10
Source Line
206
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveCuUpdateCreator.java

        String old = importDecl.getElementName();
                int oldPackLength = movedUnit.getParent().getElementName().length();

                StringBuffer result = new StringBuffer(fDestination.getElementName());
                if (oldPackLength == 0) // move FROM default package
                        result.append('.').append(old);
                else if (result.length() == 0) // move TO default package
                        result.append(old.substring(oldPackLength + 1)); // cut "."
                     else
                        result.append(old.substring(oldPackLength));


Clone AbstractionParameter Count: 0Parameter Bindings

String old = importDecl.getElementName();
int oldPackLength = movedUnit.getParent().getElementName().length();
StringBuffer result = new StringBuffer(fDestination.getElementName());
if (oldPackLength == 0) // move FROM default package
  result.append('.').append(old);
else
  if (result.length() == 0) // move TO default package
    result.append(old.substring(oldPackLength + 1)); // cut "."
  else
    result.append(old.substring(oldPackLength));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None