CloneSet812


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25250.959statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125749
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
225786
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
Clone Instance
1
Line Count
25
Source Line
749
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java

        //files are located at Parser.class directory
        InputStream stream = Parser.class .getResourceAsStream(filename);
        if (stream == null) {
                throw new java.io.IOException(Messages.bind(Messages.parser_missingFile, filename));
        }
        byte[] bytes = null;
        try {
                stream = new BufferedInputStream(stream);
                bytes = Util.getInputStreamAsByteArray(stream, -1);
        } finally {
                try {
                        stream.close();
                } catch (IOException e) {
                        // ignore
                  }
          }

        //minimal integrity check (even size expected)
        int length = bytes.length;
        if ((length&  1) != 0)
                throw new java.io.IOException(Messages.bind(Messages.parser_corruptedFile, filename));

        // convert bytes into chars
        char[] chars = new char[length / 2];
        int i = 0;
        int charIndex = 0;


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

        //files are located at Parser.class directory
        InputStream stream = Parser.class .getResourceAsStream(filename);
        if (stream == null) {
                throw new java.io.IOException(Messages.bind(Messages.parser_missingFile, filename));
        }
        byte[] bytes = null;
        try {
                stream = new BufferedInputStream(stream);
                bytes = Util.getInputStreamAsByteArray(stream, -1);
        } finally {
                try {
                        stream.close();
                } catch (IOException e) {
                        // ignore
                  }
          }

        //minimal integrity check (even size expected)
        int length = bytes.length;
        if (length % 8 != 0)
                throw new java.io.IOException(Messages.bind(Messages.parser_corruptedFile, filename));

        // convert bytes into longs
        long[] longs = new long[length / 8];
        int i = 0;
        int longIndex = 0;


Clone AbstractionParameter Count: 5Parameter Bindings

//files are located at Parser.class directory
InputStream stream = Parser.class .getResourceAsStream(filename);
if (stream == null) {
  throw new java.io.IOException(Messages.bind(Messages.parser_missingFile, filename));
}
byte[] bytes = null;
try {
  stream = new BufferedInputStream(stream);
  bytes = Util.getInputStreamAsByteArray(stream, -1);
}
finally {
  try {
    stream.close();
  }
  catch (IOException e) {
  // ignore
  }
}
//minimal integrity check (even size expected)
int length = bytes.length;
if ( [[#variableb3185fe0]]!= 0)
  throw new java.io.IOException(Messages.bind(Messages.parser_corruptedFile, filename));
 [[#variableb9fadbc0]][]  [[#variableb58f3280]]= new [[#variableb9fadbc0]][length /  [[#variableb3184400]]];
int i = 0;
int  [[#variableb3185fa0]]= 0;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3185fe0]]
length % 8 
12[[#b3185fe0]]
(length&1) 
21[[#b9fadbc0]]
// convert bytes into longs
long 
22[[#b9fadbc0]]
// convert bytes into chars
char 
31[[#b58f3280]]
longs 
32[[#b58f3280]]
chars 
41[[#b3184400]]
8 
42[[#b3184400]]
2 
51[[#b3185fa0]]
longIndex 
52[[#b3185fa0]]
charIndex