CloneSet2574


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.974statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115117
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Util.java
215248
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaAppletLaunchConfigurationDelegate.java
Clone Instance
1
Line Count
15
Source Line
117
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Util.java

                                // resize contents if needed
                                if (contentsLength + amountRequested > contents.length) {
                                        System.arraycopy(
                                                contents, 
                                                0, 
                                                contents = new byte[contentsLength + amountRequested], 
                                                0, 
                                                contentsLength);
                                }

                                // read as many bytes as possible
                                amountRead = stream.read(contents, contentsLength, amountRequested);

                                if (amountRead > 0) {
                                        // remember length of contents
                                        contentsLength += amountRead;
                                }


Clone Instance
2
Line Count
15
Source Line
248
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaAppletLaunchConfigurationDelegate.java

                                // resize contents if needed
                                if (contentsLength + available > contents.length) {
                                        System.arraycopy(
                                                contents, 
                                                0, 
                                                contents = new byte[contentsLength + available], 
                                                0, 
                                                contentsLength);
                                }

                                // read as many bytes as possible
                                bytesRead = stream.read(contents, contentsLength, available);

                                if (bytesRead > 0) {
                                        // remember length of contents
                                        contentsLength += bytesRead;
                                }


Clone AbstractionParameter Count: 2Parameter Bindings

// resize contents if needed
if (contentsLength +  [[#variable5a1f3600]] > contents.length) {
  System.arraycopy(contents, 0, contents = new byte[contentsLength +  [[#variable5a1f3600]]], 0, contentsLength);
}
 [[#variable5a1f35e0]]= stream.read(contents, contentsLength,  [[#variable5a1f3600]]);
if ( [[#variable5a1f35e0]] > 0) {
  // remember length of contents
  contentsLength += [[#variable5a1f35e0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a1f3600]]
available 
12[[#5a1f3600]]
amountRequested 
21[[#5a1f35e0]]
// read as many bytes as possible
bytesRead 
22[[#5a1f35e0]]
// read as many bytes as possible
amountRead