CloneSet610


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15330.959statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115451
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
215474
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
315497
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
15
Source Line
451
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        //read upto the tag
        while ( !tokens[i++ ].equals(tag)) {
                                         /*empty*/
        }
        //read upto the }
        byte[] bytes = new byte[tokens.length]; //can't be bigger
        int ic = 0;
        String token;
        while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
                int c = Integer.parseInt(token);
                bytes[ic++ ] = (byte) c;
        }
        //resize
        System.arraycopy(bytes, 0, bytes = new byte[ic], 0, ic);

        buildFileForTable(filename, bytes);


Clone Instance
2
Line Count
15
Source Line
474
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        //read upto the tag
        while ( !tokens[i++ ].equals(tag)) {
                                         /*empty*/
        }
        //read upto the }
        char[] chars = new char[tokens.length]; //can't be bigger
        int ic = 0;
        String token;
        while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
                int c = Integer.parseInt(token);
                chars[ic++ ] = (char) c;
        }
        //resize
        System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

        buildFileForTable(filename, chars);


Clone Instance
3
Line Count
15
Source Line
497
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        //read upto the tag
        while ( !tokens[i++ ].equals(tag)) {
                                         /*empty*/
        }
        //read upto the }
        char[] chars = new char[tokens.length]; //can't be bigger
        int ic = 0;
        String token;
        while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
                int c = Integer.parseInt(token);
                chars[ic++ ] = (char) (c + 32768);
        }
        //resize
        System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

        buildFileForTable(filename, chars);


Clone AbstractionParameter Count: 3Parameter Bindings

//read upto the tag
while ( !tokens[i++ ].equals(tag)) {
/*empty*/
}
 [[#variableb77960c0]][]  [[#variable5b8cc000]]= new [[#variableb77960c0]][tokens.length]; //can't be bigger
int ic = 0;
String token;
while ( !(token = tokens[i++ ]).equals("}")) { //$NON-NLS-1$
  int c = Integer.parseInt(token);
   [[#variable5b8cc000]][ic++ ] = ( [[#variableb77960c0]])  [[#variable7da06300]];
}
//resize
System.arraycopy( [[#variable5b8cc000]], 0,  [[#variable5b8cc000]]= new [[#variableb77960c0]][ic], 0, ic);
buildFileForTable(filename,  [[#variable5b8cc000]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b77960c0]]
//read upto the }
char 
12[[#b77960c0]]
//read upto the }
char 
13[[#b77960c0]]
//read upto the }
byte 
21[[#5b8cc000]]
chars 
22[[#5b8cc000]]
chars 
23[[#5b8cc000]]
bytes 
31[[#7da06300]]
(c + 32768) 
32[[#7da06300]]
c 
33[[#7da06300]]
c