CloneSet5307


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.985class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14117
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java
24122
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java
Clone Instance
1
Line Count
4
Source Line
117
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java

        private static boolean rangeStartsBetween(SourceRange range, ASTNode first, ASTNode next) {
                int pos = range.getOffset();
                return    first.getStartPosition() + first.getLength() <= pos &&
                           pos <= next.getStartPosition();
        }


Clone Instance
2
Line Count
4
Source Line
122
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java

        private static boolean rangeEndsBetween(SourceRange range, ASTNode first, ASTNode next) {
                int pos = range.getEndExclusive();
                return    first.getStartPosition() + first.getLength() <= pos &&
                           pos <= next.getStartPosition();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private static boolean  [[#variableb18ea3a0]](SourceRange range, ASTNode first, ASTNode next) {
  int pos = range. [[#variableb18ea340]]();
  return first.getStartPosition() + first.getLength() <= pos && pos <= next.getStartPosition();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b18ea3a0]]
rangeStartsBetween 
12[[#b18ea3a0]]
rangeEndsBetween 
21[[#b18ea340]]
getOffset 
22[[#b18ea340]]
getEndExclusive