CloneSet4378


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.981class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1740
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/NullLiteral.java
2757
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetThisReference.java
Clone Instance
1
Line Count
7
Source Line
40
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/NullLiteral.java

        /**
         * Code generation for the null literal
         *
         * @param currentScope org.eclipse.jdt.internal.compiler.lookup.BlockScope
         * @param codeStream org.eclipse.jdt.internal.compiler.codegen.CodeStream
         * @param valueRequired boolean
         */
        public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
                int pc = codeStream.position;
                if (valueRequired) {
                        codeStream.aconst_null();
                        codeStream.generateImplicitConversion(this.implicitConversion);
                }
                codeStream.recordPositionsFrom(pc, this.sourceStart);
        }


Clone Instance
2
Line Count
7
Source Line
57
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetThisReference.java

        public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
                int pc = codeStream.position;
                if (valueRequired) {
                        codeStream.aload_0();
                        codeStream.getfield(this.delegateThis);
                }
                codeStream.recordPositionsFrom(pc, this.sourceStart);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Code generation for the null literal
         *
         * @param currentScope org.eclipse.jdt.internal.compiler.lookup.BlockScope
         * @param codeStream org.eclipse.jdt.internal.compiler.codegen.CodeStream
         * @param valueRequired boolean
         */
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
  int pc = codeStream.position;
  if (valueRequired) {
    codeStream. [[#variable53e89020]]();
    codeStream. [[#variable53e88fa0]](this. [[#variable53e88f20]]);
  }
  codeStream.recordPositionsFrom(pc, this.sourceStart);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53e89020]]
aload_0 
12[[#53e89020]]
aconst_null 
21[[#53e88fa0]]
getfield 
22[[#53e88fa0]]
generateImplicitConversion 
31[[#53e88f20]]
delegateThis 
32[[#53e88f20]]
implicitConversion