CloneSet1065


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7440.952statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1773
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/FieldImpl.java
27100
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LocalVariableImpl.java
3785
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LocationImpl.java
47373
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodImpl.java
Clone Instance
1
Line Count
7
Source Line
73
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/FieldImpl.java

                if (object == null || !object.getClass().equals(this.getClass()))
                        throw new ClassCastException(JDIMessages.FieldImpl_Can__t_compare_field_to_given_object_1);

                // See if declaring types are the same, if not return comparison between declaring types.
                Field type2 = (Field) object;
                if ( !declaringType().equals(type2.declaringType()))
                        return declaringType().compareTo(type2.declaringType());


Clone Instance
2
Line Count
7
Source Line
100
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LocalVariableImpl.java

                if (object == null || !object.getClass().equals(this.getClass()))
                        throw new ClassCastException(JDIMessages.LocalVariableImpl_Can__t_compare_local_variable_to_given_object_1);

                // See if methods are the same, if not return comparison between methods.
                LocalVariableImpl var2 = (LocalVariableImpl) object;
                if ( !method().equals(var2.method()))
                        return method().compareTo(var2.method());


Clone Instance
3
Line Count
7
Source Line
85
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LocationImpl.java

                if (object == null || !object.getClass().equals(this.getClass()))
                        throw new ClassCastException(JDIMessages.LocationImpl_Can__t_compare_location_to_given_object_1);

                // See if methods are the same, if not return comparison between methods.
                LocationImpl location2 = (LocationImpl) object;
                if ( !method().equals(location2.method()))
                        return method().compareTo(location2.method());


Clone Instance
4
Line Count
7
Source Line
373
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodImpl.java

                if (object == null || !object.getClass().equals(this.getClass()))
                        throw new ClassCastException(JDIMessages.MethodImpl_Can__t_compare_method_to_given_object_6);

                // See if declaring types are the same, if not return comparison between declaring types.
                Method type2 = (Method) object;
                if ( !declaringType().equals(type2.declaringType()))
                        return declaringType().compareTo(type2.declaringType());


Clone AbstractionParameter Count: 4Parameter Bindings

if (object == null || !object.getClass().equals(this.getClass()))
  throw new ClassCastException(JDIMessages. [[#variable77b4c680]]);
 [[#variable77b4c5e0]]  [[#variable77b4d160]]= ( [[#variable77b4c5e0]]) object;
if ( ! [[#variable77b4c640]]().equals( [[#variable77b4d160]]. [[#variable77b4c640]]()))
  return [[#variable77b4c640]]().compareTo( [[#variable77b4d160]]. [[#variable77b4c640]]());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77b4c680]]
FieldImpl_Can__t_compare_field_to_given_object_1 
12[[#77b4c680]]
LocalVariableImpl_Can__t_compare_local_variable_to_given_object_1 
13[[#77b4c680]]
LocationImpl_Can__t_compare_location_to_given_object_1 
14[[#77b4c680]]
MethodImpl_Can__t_compare_method_to_given_object_6 
21[[#77b4c5e0]]
// See if declaring types are the same, if not return comparison between declaring types.
Field 
22[[#77b4c5e0]]
// See if methods are the same, if not return comparison between methods.
LocalVariableImpl 
23[[#77b4c5e0]]
// See if methods are the same, if not return comparison between methods.
LocationImpl 
24[[#77b4c5e0]]
// See if declaring types are the same, if not return comparison between declaring types.
Method 
31[[#77b4d160]]
type2 
32[[#77b4d160]]
var2 
33[[#77b4d160]]
location2 
34[[#77b4d160]]
type2 
41[[#77b4c640]]
declaringType 
42[[#77b4c640]]
method 
43[[#77b4c640]]
method 
44[[#77b4c640]]
declaringType