Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 0 | 1.000 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 169 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/jarpackager/JarWriter2.java |
2 | 12 | 231 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/jarpackager/JarWriter3.java |
| ||||
// Set modification time newEntry.setTime(lastModified); InputStream contentStream = resource.getContents(false); try { fJarOutputStream.putNextEntry(newEntry); int count; while ((count = contentStream.read(readBuffer, 0, readBuffer.length)) != -1) fJarOutputStream.write(readBuffer, 0, count); } finally { if (contentStream != null) contentStream.close(); /* * Commented out because some JREs throw an NPE if a stream * is closed twice. This works because * a) putNextEntry closes the previous entry * b) closing the stream closes the last entry */ // fJarOutputStream.closeEntry(); } |
| ||||
// Set modification time newEntry.setTime(lastModified); InputStream contentStream = resource.getContents(false); try { fJarOutputStream.putNextEntry(newEntry); int count; while ((count = contentStream.read(readBuffer, 0, readBuffer.length)) != -1) fJarOutputStream.write(readBuffer, 0, count); } finally { if (contentStream != null) contentStream.close(); /* * Commented out because some JREs throw an NPE if a stream * is closed twice. This works because * a) putNextEntry closes the previous entry * b) closing the stream closes the last entry */ // fJarOutputStream.closeEntry(); } |
| |||
// Set modification time newEntry.setTime(lastModified); InputStream contentStream = resource.getContents(false); try { fJarOutputStream.putNextEntry(newEntry); int count; while ((count = contentStream.read(readBuffer, 0, readBuffer.length)) != -1) fJarOutputStream.write(readBuffer, 0, count); } finally { if (contentStream != null) contentStream.close(); /* * Commented out because some JREs throw an NPE if a stream * is closed twice. This works because * a) putNextEntry closes the previous entry * b) closing the stream closes the last entry */ // fJarOutputStream.closeEntry(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |