Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 4 | 4 | 0.952 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 73 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/FieldImpl.java |
2 | 7 | 100 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LocalVariableImpl.java |
3 | 7 | 85 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/LocationImpl.java |
4 | 7 | 373 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/MethodImpl.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()); |
| ||||
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()); |
| ||||
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()); |
| ||||
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()); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77b4c680]] | FieldImpl_Can__t_compare_field_to_given_object_1 |
1 | 2 | [[#77b4c680]] | LocalVariableImpl_Can__t_compare_local_variable_to_given_object_1 |
1 | 3 | [[#77b4c680]] | LocationImpl_Can__t_compare_location_to_given_object_1 |
1 | 4 | [[#77b4c680]] | MethodImpl_Can__t_compare_method_to_given_object_6 |
2 | 1 | [[#77b4c5e0]] | // See if declaring types are the same, if not return comparison between declaring types. Field |
2 | 2 | [[#77b4c5e0]] | // See if methods are the same, if not return comparison between methods. LocalVariableImpl |
2 | 3 | [[#77b4c5e0]] | // See if methods are the same, if not return comparison between methods. LocationImpl |
2 | 4 | [[#77b4c5e0]] | // See if declaring types are the same, if not return comparison between declaring types. Method |
3 | 1 | [[#77b4d160]] | type2 |
3 | 2 | [[#77b4d160]] | var2 |
3 | 3 | [[#77b4d160]] | location2 |
3 | 4 | [[#77b4d160]] | type2 |
4 | 1 | [[#77b4c640]] | declaringType |
4 | 2 | [[#77b4c640]] | method |
4 | 3 | [[#77b4c640]] | method |
4 | 4 | [[#77b4c640]] | declaringType |