Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.986 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 407 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/generatedfile/GeneratedFileManager.java |
2 | 7 | 425 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/generatedfile/GeneratedFileManager.java |
| ||||
/** * returns true if the specified file is a generated file (i.e., it has one or more parent files) * * @param f the file in question * @return true */ public synchronized boolean isGeneratedFile( IFile f) { Set<IFile> s = _generatedFile2ParentFiles.get( f); if ( s == null || s.isEmpty()) return false; else return true; } |
| ||||
/** * returns true if the specified file is a parent file (i.e., it has one or more generated files) * * @param f - the file in question * @return true if the file is a parent, false otherwise * * @see #getGeneratedFilesForParent(IFile) * @see #isGeneratedFile(IFile) */ public synchronized boolean isParentFile( IFile f) { Set<IFile> s = _parentFile2GeneratedFiles.get( f); if ( s == null || s.isEmpty()) return false; else return true; } |
| |||
/** * returns true if the specified file is a generated file (i.e., it has one or more parent files) * * @param f the file in question * @return true */ /** * returns true if the specified file is a parent file (i.e., it has one or more generated files) * * @param f - the file in question * @return true if the file is a parent, false otherwise * * @see #getGeneratedFilesForParent(IFile) * @see #isGeneratedFile(IFile) */ public synchronized boolean [[#variablea5ef7720]](IFile f) { Set<IFile> s = [[#variablea5ef7620]].get(f); if (s == null || s.isEmpty()) return false; else return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a5ef7720]] | isGeneratedFile |
1 | 2 | [[#a5ef7720]] | isParentFile |
2 | 1 | [[#a5ef7620]] | _generatedFile2ParentFiles |
2 | 2 | [[#a5ef7620]] | _parentFile2GeneratedFiles |