CloneSet2355


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.988executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18441
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java
28451
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java
Clone Instance
1
Line Count
8
Source Line
441
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java

                                                                                        {
                                                                final Name qualifier = (Name) expression;
                                                                final IBinding result = qualifier.resolveBinding();
                                                                if (result != null && result.equals(fIterator)) {
                                                                        if ( !binding.getName().equals("next") && !binding.getName().equals("nextElement")) { //$NON-NLS-1$ //$NON-NLS-2$
                                                                                otherInvocationThenNext[0] = true;
                                                                        }
                                                                        else   {
                                                                                nextInvocationCount[0]++;
                                                                        }
                                                                }
                                                                                        }


Clone Instance
2
Line Count
8
Source Line
451
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java

                                                                                                      {
                                                                final FieldAccess qualifier = (FieldAccess) expression;
                                                                final IBinding result = qualifier.resolveFieldBinding();
                                                                if (result != null && result.equals(fIterator)) {
                                                                        if ( !binding.getName().equals("next") && !binding.getName().equals("nextElement")) { //$NON-NLS-1$ //$NON-NLS-2$
                                                                                otherInvocationThenNext[0] = true;
                                                                        }
                                                                        else   {
                                                                                nextInvocationCount[0]++;
                                                                        }
                                                                }
                                                                                                      }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  final [[#variablea055ad60]] qualifier = ( [[#variablea055ad60]]) expression;
  final IBinding result = qualifier. [[#variablea055ae40]]();
  if (result != null && result.equals(fIterator)) {
    if ( !binding.getName().equals("next") && !binding.getName().equals("nextElement")) { //$NON-NLS-1$ //$NON-NLS-2$
      otherInvocationThenNext[0] = true;
    }
    else {
      nextInvocationCount[0]++;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a055ad60]]
FieldAccess 
12[[#a055ad60]]
Name 
21[[#a055ae40]]
resolveFieldBinding 
22[[#a055ae40]]
resolveBinding