CloneSet2875


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6240.963statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16136
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaStringAutoIndentStrategy.java
2587
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java
Clone Instance
1
Line Count
6
Source Line
136
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaStringAutoIndentStrategy.java

                // find start of line
                int adjustedOffset = (offset == document.getLength() ? offset -  1:  offset);
                IRegion line = document.getLineInformationOfOffset(adjustedOffset);
                int start = line.getOffset();

                // find white spaces
                int end = findEndOfWhiteSpace(document, start, offset);


Clone Instance
2
Line Count
5
Source Line
87
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java

                        int p = (offset == d.getLength() ? offset - 1:  offset);
                        IRegion line = d.getLineInformationOfOffset(p);

                        int lineOffset = line.getOffset();
                        int firstNonWS = findEndOfWhiteSpace(d, lineOffset, offset);


Clone AbstractionParameter Count: 4Parameter Bindings

// find start of line
int  [[#variable63cc3460]]= (offset == [[#variable50b4c820]].getLength() ? offset - 1: offset);
IRegion line = [[#variable50b4c820]].getLineInformationOfOffset( [[#variable63cc3460]]);
int  [[#variable63cc3360]]= line.getOffset();
// find white spaces
int  [[#variable63cc3300]]= findEndOfWhiteSpace( [[#variable50b4c820]],  [[#variable63cc3360]], offset);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#63cc3460]]
adjustedOffset 
12[[#63cc3460]]
p 
21[[#50b4c820]]
document 
22[[#50b4c820]]
d 
31[[#63cc3360]]
start 
32[[#63cc3360]]
lineOffset 
41[[#63cc3300]]
end 
42[[#63cc3300]]
firstNonWS