static class MenuItemCompare implements MiscUtilities.Compare
{
public int compare(Object obj1, Object obj2)
{
return MiscUtilities.compareStrings(
((MenuItem)obj1).label,
((MenuItem)obj2).label,
true);
static class ButtonCompare implements MiscUtilities.Compare
{
public int compare(Object obj1, Object obj2)
{
return MiscUtilities.compareStrings(
((Button)obj1).label,
((Button)obj2).label,
true);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ContextOptionPane.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | static class MenuItemCompare implements MiscUtilities.Compare↵ | | 1 | static class ButtonCompare implements MiscUtilities.Compare↵
|
2 | {↵ | | 2 | {↵
|
3 | public int compare(Object obj1, Object obj2)↵ | | 3 | public int compare(Object obj1, Object obj2)↵
|
4 | {↵ | | 4 | {↵
|
5 | return MiscUtilities.compareStrings(↵ | | 5 | return MiscUtilities.compareStrings(↵
|
6 | ((MenuItem)obj1).label,↵ | | 6 | ((Button)obj1).label,↵
|
7 | ((MenuItem)obj2).label,↵ | | 7 | ((Button)obj2).label,↵
|
8 | true); | | 8 | true);
|
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.0 |
Clones location | |
Number of node comparisons | 0 |