CloneSet1511


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.979block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117499
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/CommentRegion.java
217181
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentFormattingStrategy.java
Clone Instance
1
Line Count
17
Source Line
499
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/CommentRegion.java

                                                 {
                StringBuffer expanded = new StringBuffer();
                for (int i = 0,n = string.length(),chars = 0; i < n; i++) {
                        char ch = string.charAt(i);
                        if (ch == '\t') {
                                for (; chars < fTabSize; chars++)
                                        expanded.append(' ');
                                chars = 0;
                        }
                        else   {
                                expanded.append(ch);
                                chars++;
                                if (chars >= fTabSize)
                                        chars = 0;
                        }
                }
                return expanded.toString();
                                                 }


Clone Instance
2
Line Count
17
Source Line
181
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentFormattingStrategy.java

                                                                           {
                StringBuffer expanded = new StringBuffer();
                for (int i = 0,n = string.length(),chars = 0; i < n; i++) {
                        char ch = string.charAt(i);
                        if (ch == '\t') {
                                for (; chars < tabSize; chars++)
                                        expanded.append(' ');
                                chars = 0;
                        }
                        else   {
                                expanded.append(ch);
                                chars++;
                                if (chars >= tabSize)
                                        chars = 0;
                        }
                }
                return expanded;
                                                                           }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  StringBuffer expanded = new StringBuffer();
  for (int i = 0, n = string.length(), chars = 0; i < n; i++) {
    char ch = string.charAt(i);
    if (ch == '\t') {
      for (; chars <  [[#variableb204c700]]; chars++)
        expanded.append(' ');
      chars = 0;
    }
    else {
      expanded.append(ch);
      chars++;
      if (chars >= [[#variableb204c700]])
        chars = 0;
    }
  }
  return [[#variableb1dff8c0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b204c700]]
fTabSize 
12[[#b204c700]]
tabSize 
21[[#b1dff8c0]]
expanded.toString() 
22[[#b1dff8c0]]
expanded