CloneSet1046


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10430.986statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191870
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
292463
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
392753
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
4103046
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
Clone Instance
1
Line Count
9
Source Line
1870
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

                int kind = getChangeKind(node, ClassInstanceCreation.ANONYMOUS_CLASS_DECLARATION_PROPERTY);
                if (kind == RewriteEvent.REMOVED) {
                        try {
                                pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameLBRACE, pos);
                        } catch (CoreException e) {
                                handleException(e);
                          }
                }
                else   {
                        pos = node.getStartPosition() + node.getLength(); // insert pos
                }


Clone Instance
2
Line Count
9
Source Line
2463
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

                        int kind = getChangeKind(node, SingleVariableDeclaration.INITIALIZER_PROPERTY);
                        if (kind == RewriteEvent.REMOVED) {
                                try {
                                        pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameEQUAL, pos);
                                } catch (CoreException e) {
                                        handleException(e);
                                  }
                        }
                        else   {
                                pos = node.getStartPosition() + node.getLength(); // insert pos
                        }


Clone Instance
3
Line Count
9
Source Line
2753
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

                        int kind = getChangeKind(node, VariableDeclarationFragment.INITIALIZER_PROPERTY);
                        if (kind == RewriteEvent.REMOVED) {
                                try {
                                        pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameEQUAL, pos);
                                } catch (CoreException e) {
                                        handleException(e);
                                  }
                        }
                        else   {
                                pos = node.getStartPosition() + node.getLength(); // insert pos
                        }


Clone Instance
4
Line Count
10
Source Line
3046
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

                        int kind = getChangeKind(node, EnumConstantDeclaration.ANONYMOUS_CLASS_DECLARATION_PROPERTY);
                        if (kind == RewriteEvent.REMOVED) {
                                try {
                                        // 'pos' can be before brace
                                        pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols.TokenNameLBRACE, pos);
                                } catch (CoreException e) {
                                        handleException(e);
                                  }
                        }
                        else   {
                                pos = node.getStartPosition() + node.getLength(); // insert pos
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

int kind = getChangeKind(node,  [[#variableb85f0fa0]]. [[#variableb3c097c0]]);
if (kind == RewriteEvent.REMOVED) {
  try {
    // 'pos' can be before brace
    pos = getScanner().getPreviousTokenEndOffset(ITerminalSymbols. [[#variableb85f0fc0]], pos);
  }
  catch (CoreException e) {
    handleException(e);
  }
}
else {
  pos = node.getStartPosition() + node.getLength(); // insert pos
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b85f0fa0]]
EnumConstantDeclaration 
12[[#b85f0fa0]]
VariableDeclarationFragment 
13[[#b85f0fa0]]
SingleVariableDeclaration 
14[[#b85f0fa0]]
ClassInstanceCreation 
21[[#b3c097c0]]
ANONYMOUS_CLASS_DECLARATION_PROPERTY 
22[[#b3c097c0]]
INITIALIZER_PROPERTY 
23[[#b3c097c0]]
INITIALIZER_PROPERTY 
24[[#b3c097c0]]
ANONYMOUS_CLASS_DECLARATION_PROPERTY 
31[[#b85f0fc0]]
TokenNameLBRACE 
32[[#b85f0fc0]]
TokenNameEQUAL 
33[[#b85f0fc0]]
TokenNameEQUAL 
34[[#b85f0fc0]]
TokenNameLBRACE