CloneSet277


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118209
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java
218375
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java
Clone Instance
1
Line Count
18
Source Line
209
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java

                                        String[] typeParameters = Signature.getTypeParameters(genericSignature);
                                        if (typeParameters.length > 0) {
                                                source.append('<');
                                                source.append(Signature.getTypeVariable(typeParameters[0]));
                                                String[] typeParameterBounds = Signature.getTypeParameterBounds(typeParameters[0]);
                                                source.append(" extends ").append(Signature.toString(typeParameterBounds[0]).replace('/', '.')); //$NON-NLS-1$
                                                for (int i = 1; i < typeParameterBounds.length; i++) {
                                                        source.append(" & ").append(Signature.toString(typeParameterBounds[i]).replace('/', '.')); //$NON-NLS-1$
                                                }
                                                for (int j = 1; j < typeParameters.length; j++) {
                                                        source.append(',').append(Signature.getTypeVariable(typeParameters[j]));
                                                        typeParameterBounds = Signature.getTypeParameterBounds(typeParameters[j]);
                                                        source.append(" extends ").append(Signature.toString(typeParameterBounds[0]).replace('/', '.')); //$NON-NLS-1$
                                                        for (int i = 1; i < typeParameterBounds.length; i++) {
                                                                source.append(" & ").append(Signature.toString(typeParameterBounds[i]).replace('/', '.')); //$NON-NLS-1$
                                                        }
                                                }
                                                source.append("> "); //$NON-NLS-1$
                                        }


Clone Instance
2
Line Count
18
Source Line
375
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/BinaryBasedSourceGenerator.java

                        String[] typeParameters = Signature.getTypeParameters(genericSignature);
                        if (typeParameters.length > 0) {
                                source.append('<');
                                source.append(Signature.getTypeVariable(typeParameters[0]));
                                String[] typeParameterBounds = Signature.getTypeParameterBounds(typeParameters[0]);
                                source.append(" extends ").append(Signature.toString(typeParameterBounds[0]).replace('/', '.')); //$NON-NLS-1$
                                for (int i = 1; i < typeParameterBounds.length; i++) {
                                        source.append(" & ").append(Signature.toString(typeParameterBounds[i]).replace('/', '.')); //$NON-NLS-1$
                                }
                                for (int j = 1; j < typeParameters.length; j++) {
                                        source.append(',').append(Signature.getTypeVariable(typeParameters[j]));
                                        typeParameterBounds = Signature.getTypeParameterBounds(typeParameters[j]);
                                        source.append(" extends ").append(Signature.toString(typeParameterBounds[0]).replace('/', '.')); //$NON-NLS-1$
                                        for (int i = 1; i < typeParameterBounds.length; i++) {
                                                source.append(" & ").append(Signature.toString(typeParameterBounds[i]).replace('/', '.')); //$NON-NLS-1$
                                        }
                                }
                                source.append("> "); //$NON-NLS-1$
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

String[] typeParameters = Signature.getTypeParameters(genericSignature);
if (typeParameters.length > 0) {
  source.append('<');
  source.append(Signature.getTypeVariable(typeParameters[0]));
  String[] typeParameterBounds = Signature.getTypeParameterBounds(typeParameters[0]);
  source.append(" extends ").append(Signature.toString(typeParameterBounds[0]).replace('/', '.')); //$NON-NLS-1$
  for (int i = 1; i < typeParameterBounds.length; i++) {
    source.append(" & ").append(Signature.toString(typeParameterBounds[i]).replace('/', '.')); //$NON-NLS-1$
  }
  for (int j = 1; j < typeParameters.length; j++) {
    source.append(',').append(Signature.getTypeVariable(typeParameters[j]));
    typeParameterBounds = Signature.getTypeParameterBounds(typeParameters[j]);
    source.append(" extends ").append(Signature.toString(typeParameterBounds[0]).replace('/', '.')); //$NON-NLS-1$
    for (int i = 1; i < typeParameterBounds.length; i++) {
      source.append(" & ").append(Signature.toString(typeParameterBounds[i]).replace('/', '.')); //$NON-NLS-1$
    }
  }
  source.append("> "); //$NON-NLS-1$
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None