CloneSet3408


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111278
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/IndentUtil.java
211855
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
Clone Instance
1
Line Count
11
Source Line
278
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/IndentUtil.java

                for (int i = 0; i < seq.length(); i++) {
                        char ch = seq.charAt(i);
                        if (ch == '\t') {
                                if (tablen != 0)
                                        size += tablen - size % tablen;
                                // else: size stays the same
                        }
                        else   {
                                size++;
                        }
                }
                return size;


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

                for (int i = 0; i < seq.length(); i++) {
                        char ch = seq.charAt(i);
                        if (ch == '\t') {
                                if (tablen != 0)
                                        size += tablen - size % tablen;
                                // else: size stays the same
                        }
                        else   {
                                size++;
                        }
                }
                return size;


Clone AbstractionParameter Count: 0Parameter Bindings

for (int i = 0; i < seq.length(); i++) {
  char ch = seq.charAt(i);
  if (ch == '\t') {
    if (tablen != 0)
      size += tablen - size % tablen;
  // else: size stays the same
  }
  else {
    size++;
  }
}
return size;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None