if(o instanceof ErrorEntry)
{
ErrorEntry e = (ErrorEntry)o;
return e.path.equals(path);
}
else
return false;
if(o instanceof Descriptor)
{
Descriptor d = (Descriptor)o;
return d.clazz.equals(clazz)
&& d.name.equals(name);
}
else
return false;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ErrorListDialog.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/ServiceManager.java
|
Method name: boolean equals(Object)
|
|
Method name: boolean equals(Object)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if(o instanceof ErrorEntry)↵ | | 1 | if(o instanceof Descriptor)↵
|
2 | {↵ | | 2 | {↵
|
3 | ErrorEntry e = (ErrorEntry)o;↵ | | 3 | ↵
|
4 | return e.path↵ | | 4 | Descriptor d = (Descriptor)o;↵
|
| | | 5 | return d.clazz.equals(clazz)↵
|
5 | .equals(path);↵ | | 6 | && d.name.equals(name);↵
|
6 | }↵ | | 7 | }↵
|
7 | else↵ | | 8 | else↵
|
8 | return false; | | 9 | return false;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |