CloneSet1905


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.997statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114129
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/FilerImpl.java
214170
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/FilerImpl.java
Clone Instance
1
Line Count
14
Source Line
129
Source File
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);


Clone Instance
2
Line Count
14
Source Line
170
Source File
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();

        // 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);


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba6941e0]]
NoOpPrintWriter 
12[[#ba6941e0]]
NoOpOutputStream