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.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 356 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelOperation.java |
2 | 7 | 666 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelOperation.java |
| ||||
/* * Returns whether the given path is equals to one of the given other paths. */ protected boolean equalsOneOf(IPath path, IPath[] otherPaths) { for (int i = 0, length = otherPaths.length; i < length; i++) { if (path.equals(otherPaths[i])) { return true; } } return false; } |
| ||||
/* * Returns whether the given path is the prefix of one of the given other paths. */ protected boolean prefixesOneOf(IPath path, IPath[] otherPaths) { for (int i = 0, length = otherPaths.length; i < length; i++) { if (path.isPrefixOf(otherPaths[i])) { return true; } } return false; } |
| |||
/* * Returns whether the given path is equals to one of the given other paths. */ /* * Returns whether the given path is the prefix of one of the given other paths. */ protected boolean [[#variable951f7fa0]](IPath path, IPath[] otherPaths) { for (int i = 0, length = otherPaths.length; i < length; i++) { if (path. [[#variable951f7ea0]](otherPaths[i])) { return true; } } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#951f7fa0]] | equalsOneOf |
1 | 2 | [[#951f7fa0]] | prefixesOneOf |
2 | 1 | [[#951f7ea0]] | equals |
2 | 2 | [[#951f7ea0]] | isPrefixOf |