CloneSet2096


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.978statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112564
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java
212592
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java
Clone Instance
1
Line Count
12
Source Line
564
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java

                                ASTNode temp = node;
                                int count = iterations;
                                do {
                                        int nodeOffset = temp.getStartPosition();
                                        int problemOffset = problem.getSourceStart();
                                        if (nodeOffset <= problemOffset && problemOffset < nodeOffset + temp.getLength()) {
                                                result.add(problem);
                                                count = 0;
                                        }
                                        else   {
                                                count--;
                                        }
                                }
                                while (  (temp = temp.getParent()) != null && count > 0);


Clone Instance
2
Line Count
12
Source Line
592
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java

                        ASTNode temp = node;
                        int count = iterations;
                        do {
                                int nodeOffset = temp.getStartPosition();
                                int messageOffset = message.getStartPosition();
                                if (nodeOffset <= messageOffset && messageOffset < nodeOffset + temp.getLength()) {
                                        result.add(message);
                                        count = 0;
                                }
                                else   {
                                        count--;
                                }
                        }
                        while (  (temp = temp.getParent()) != null && count > 0);


Clone AbstractionParameter Count: 3Parameter Bindings

ASTNode temp = node;
int count = iterations;
do {
  int nodeOffset = temp.getStartPosition();
  int  [[#variable581dde20]]= [[#variableb1e689a0]]. [[#variableb23be9e0]]();
  if (nodeOffset <= [[#variable581dde20]]&& [[#variable581dde20]] < nodeOffset + temp.getLength()) {
    result.add( [[#variableb1e689a0]]);
    count = 0;
  }
  else {
    count--;
  }
}
while ((temp = temp.getParent()) != null && count > 0);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#581dde20]]
problemOffset 
12[[#581dde20]]
messageOffset 
21[[#b1e689a0]]
problem 
22[[#b1e689a0]]
message 
31[[#b23be9e0]]
getSourceStart 
32[[#b23be9e0]]
getStartPosition