CloneSet1539


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131533
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
2146177
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
Clone Instance
1
Line Count
13
Source Line
1533
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

        FieldBinding field = fieldDecl.binding;
        if (CharOperation.equals(TypeConstants.SERIALVERSIONUID, field.name) &&
                           field.isStatic() &&
                           field.isFinal() &&
                           TypeBinding.LONG == field.type) {
                                return; // do not report unused serialVersionUID field
        }
        if (CharOperation.equals(TypeConstants.SERIALPERSISTENTFIELDS, field.name) &&
                           field.isStatic() &&
                           field.isFinal() &&
                           field.type.dimensions() == 1 &&
                           CharOperation.equals(TypeConstants.CharArray_JAVA_IO_OBJECTSTREAMFIELD, field.type.leafComponentType().readableName())) {
                                return; // do not report unused serialPersistentFields field
        }


Clone Instance
2
Line Count
14
Source Line
6177
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

        FieldBinding field = fieldDecl.binding;

        if (CharOperation.equals(TypeConstants.SERIALVERSIONUID, field.name) &&
                           field.isStatic() &&
                           field.isFinal() &&
                           TypeBinding.LONG == field.type) {
                                return; // do not report unused serialVersionUID field
        }
        if (CharOperation.equals(TypeConstants.SERIALPERSISTENTFIELDS, field.name) &&
                           field.isStatic() &&
                           field.isFinal() &&
                           field.type.dimensions() == 1 &&
                           CharOperation.equals(TypeConstants.CharArray_JAVA_IO_OBJECTSTREAMFIELD, field.type.leafComponentType().readableName())) {
                                return; // do not report unused serialPersistentFields field
        }


Clone AbstractionParameter Count: 0Parameter Bindings

FieldBinding field = fieldDecl.binding;
if (CharOperation.equals(TypeConstants.SERIALVERSIONUID, field.name) && field.isStatic() && field.isFinal() && TypeBinding.LONG == field.type) {
  return; // do not report unused serialVersionUID field
}
if (CharOperation.equals(TypeConstants.SERIALPERSISTENTFIELDS, field.name) && field.isStatic() && field.isFinal() && field.type.dimensions() == 1 && CharOperation.equals(TypeConstants.CharArray_JAVA_IO_OBJECTSTREAMFIELD, field.type.leafComponentType().readableName())) {
  return; // do not report unused serialPersistentFields field
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None