CloneSet338


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115459
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/search/SearchAndReplace.java
215833
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/search/SearchAndReplace.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
459
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/search/SearchAndReplace.java

Buffer buffer = jEdit.openTemporary(view, null, path, false);
/* this is stupid and misleading.
 * but 'path' is not used anywhere except
 * the above line, and if this is done
 * after the 'continue', then we will
 * either hang, or be forced to duplicate
 * it inside the buffer == null, or add
 * a 'finally' clause. you decide which one's
 * worse. */
path = fileset.getNextFile(view, path);
if (buffer == null)
  continue loop;


First
Previous
Clone Instance
2
Line Count
15
Source Line
833
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/search/SearchAndReplace.java

Buffer buffer = jEdit.openTemporary(view, null, path, false);
/* this is stupid and misleading.
 * but 'path' is not used anywhere except
 * the above line, and if this is done
 * after the 'continue', then we will
 * either hang, or be forced to duplicate
 * it inside the buffer == null, or add
 * a 'finally' clause. you decide which one's
 * worse. */
path = fileset.getNextFile(view, path);
if (buffer == null)
  continue loop;


Clone AbstractionParameter Count: 0Parameter Bindings

Buffer buffer = jEdit.openTemporary(view, null, path, false);
/* this is stupid and misleading.
                                         * but 'path' is not used anywhere except
                                         * the above line, and if this is done
                                         * after the 'continue', then we will
                                         * either hang, or be forced to duplicate
                                         * it inside the buffer == null, or add
                                         * a 'finally' clause. you decide which one's
                                         * worse. */
/* this is stupid and misleading.
                                 * but 'path' is not used anywhere except
                                 * the above line, and if this is done
                                 * after the 'continue', then we will
                                 * either hang, or be forced to duplicate
                                 * it inside the buffer == null, or add
                                 * a 'finally' clause. you decide which one's
                                 * worse. */
path = fileset.getNextFile(view, path);
if (buffer == null)
  continue loop;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None