Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 1 | 0.997 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 129 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/FilerImpl.java |
2 | 14 | 170 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/FilerImpl.java |
| ||||
if (relPath == null) throw new IllegalArgumentException("Path cannot be null"); //$NON-NLS-1$ if ("".equals(relPath.getPath())) //$NON-NLS-1$ throw new IllegalArgumentException("Path cannot be empty"); //$NON-NLS-1$ _env.checkValid(); // If we're reconciling, we do not want to actually create the text file if (_env.getPhase() == Phase.RECONCILE) { return new NoOpPrintWriter(); } IPath path = getOutputFileForLocation( loc, pkg, relPath); IFile file = _env.getProject().getFile(path); |
| ||||
if (relPath == null) throw new IllegalArgumentException("Path cannot be null"); //$NON-NLS-1$ if ("".equals(relPath.getPath())) //$NON-NLS-1$ throw new IllegalArgumentException("Path cannot be empty"); //$NON-NLS-1$ _env.checkValid(); // We do not want to write to disk during reconcile if (_env.getPhase() == Phase.RECONCILE) { return new NoOpOutputStream(); } IPath path = getOutputFileForLocation( loc, pkg, relPath); IFile file = _env.getProject().getFile(path); |
| |||
if (relPath == null) throw new IllegalArgumentException("Path cannot be null"); //$NON-NLS-1$ if ("".equals(relPath.getPath())) //$NON-NLS-1$ throw new IllegalArgumentException("Path cannot be empty"); //$NON-NLS-1$ _env.checkValid(); // If we're reconciling, we do not want to actually create the text file // We do not want to write to disk during reconcile if (_env.getPhase() == Phase.RECONCILE) { return new [[#variableba6941e0]](); } IPath path = getOutputFileForLocation(loc, pkg, relPath); IFile file = _env.getProject().getFile(path); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba6941e0]] | NoOpPrintWriter |
1 | 2 | [[#ba6941e0]] | NoOpOutputStream |