CloneSet1318


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11310.966statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111236
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
2111052
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
3111090
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
Clone Instance
1
Line Count
11
Source Line
236
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

                        int lineOffset = d.getLineOffset(line);

                        // make sure we don't have any leading comments etc.
                        if (d.get(lineOffset, p - lineOffset).trim().length() != 0)
                                return;

                        // line of last javacode
                        int pos = scanner.findNonWhitespaceBackward(p, JavaHeuristicScanner.UNBOUND);
                        if (pos == -1)
                                return;
                        int lastLine = d.getLineOfOffset(pos);


Clone Instance
2
Line Count
11
Source Line
1052
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

                                int lineOffset = d.getLineOffset(line);

                                // make sure we don't have any leading comments etc.
                                if (d.get(lineOffset, p - lineOffset).trim().length() != 0)
                                        return;

                                // line of last javacode
                                int pos = scanner.findNonWhitespaceBackward(p - 1, JavaHeuristicScanner.UNBOUND);
                                if (pos == -1)
                                        return;
                                int lastLine = d.getLineOfOffset(pos);


Clone Instance
3
Line Count
11
Source Line
1090
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

                                int lineOffset = d.getLineOffset(line);

                                // make sure we don't have any leading comments etc.
                                if (d.get(lineOffset, p - lineOffset).trim().length() != 0)
                                        return;

                                // line of last javacode
                                int pos = scanner.findNonWhitespaceBackward(p - 1, JavaHeuristicScanner.UNBOUND);
                                if (pos == -1)
                                        return;
                                int lastLine = d.getLineOfOffset(pos);


Clone AbstractionParameter Count: 1Parameter Bindings

int lineOffset = d.getLineOffset(line);
// make sure we don't have any leading comments etc.
if (d.get(lineOffset, p - lineOffset).trim().length() != 0)
  return;
// line of last javacode
int pos = scanner.findNonWhitespaceBackward( [[#variableb695aa20]], JavaHeuristicScanner.UNBOUND);
if (pos == -1)
  return;
int lastLine = d.getLineOfOffset(pos);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b695aa20]]
p - 1 
12[[#b695aa20]]
p 
13[[#b695aa20]]
p - 1