CloneSet1602


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8360.954statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18201
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.java
28417
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java
38192
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavadocHover.java
Clone Instance
1
Line Count
8
Source Line
201
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.java

                        for (int k = 0; k < content.length(); k++) {
                                char ch = content.charAt(k);
                                if (ch == '<') {
                                        buf.append("&lt;"); //$NON-NLS-1$
                                }
                                else   if (ch == '>') {
                                        buf.append("&gt;"); //$NON-NLS-1$
                                       }
                                       else {
                                        buf.append(ch);
                                       }
                        }


Clone Instance
2
Line Count
8
Source Line
417
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java

                for (int i = 0; i < name.length(); i++) {
                        char ch = name.charAt(i);
                        if (ch == '>') {
                                buf.append("&gt;"); //$NON-NLS-1$
                        }
                        else   if (ch == '<') {
                                buf.append("&lt;"); //$NON-NLS-1$
                               }
                               else {
                                buf.append(ch);
                               }
                }


Clone Instance
3
Line Count
8
Source Line
192
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavadocHover.java

                for (int i = 0; i < label.length(); i++) {
                        char ch = label.charAt(i);
                        if (ch == '<') {
                                buf.append("&lt;"); //$NON-NLS-1$
                        }
                        else   if (ch == '>') {
                                buf.append("&gt;"); //$NON-NLS-1$
                               }
                               else {
                                buf.append(ch);
                               }
                }


Clone AbstractionParameter Count: 6Parameter Bindings

for (int  [[#variable53b4e1a0]]= 0; [[#variable53b4e1a0]] <  [[#variable53b4e120]].length(); [[#variable53b4e1a0]]++) {
  char ch = [[#variable53b4e120]].charAt( [[#variable53b4e1a0]]);
  if (ch == [[#variable53b4e080]]) {
    buf.append( [[#variable63f8bfe0]]); //$NON-NLS-1$
  }
  else
    if (ch == [[#variable63f8bf80]]) {
      buf.append( [[#variable63f8bca0]]); //$NON-NLS-1$
    }
    else {
      buf.append(ch);
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53b4e1a0]]
k 
12[[#53b4e1a0]]
i 
13[[#53b4e1a0]]
i 
21[[#53b4e120]]
content 
22[[#53b4e120]]
name 
23[[#53b4e120]]
label 
31[[#53b4e080]]
'<' 
32[[#53b4e080]]
'>' 
33[[#53b4e080]]
'<' 
41[[#63f8bfe0]]
"&lt;" 
42[[#63f8bfe0]]
"&gt;" 
43[[#63f8bfe0]]
"&lt;" 
51[[#63f8bf80]]
'>' 
52[[#63f8bf80]]
'<' 
53[[#63f8bf80]]
'>' 
61[[#63f8bca0]]
"&gt;" 
62[[#63f8bca0]]
"&lt;" 
63[[#63f8bca0]]
"&gt;"