if ( o instanceof BshMethod )
v.addElement( o );
else {
Vector ov = (Vector)o;
for(int i=0; i<ov.size(); i++)
v.addElement( ov.elementAt( i ) );
}
for(int i = 0; i < styleChoices.size(); i++)
{
StyleChoice ch = (StyleChoice)styleChoices
.elementAt(i);
jEdit.setProperty(ch.property,
GUIUtilities.getStyleString(ch.style));
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/NameSpace.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/SyntaxHiliteOptionPane.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if ( o instanceof BshMethod )↵ | | |
|
2 | v.addElement( o );↵ | | |
|
3 | else {↵ | | |
|
4 | Vector ov = (Vector)o;↵ | | |
|
5 | for(int i=0; i<ov.size(); i++)↵ | | |
|
6 | v.addElement( ov.elementAt( i ) );↵ | | |
|
7 | ↵ | | 1 | for(int i = 0; i < styleChoices.size(); i++)↵
|
| | | 2 | {↵
|
| | | 3 | StyleChoice ch = (StyleChoice)styleChoices↵
|
| | | 4 | .elementAt(i);↵
|
| | | 5 | jEdit.setProperty(ch.property,↵
|
| | | 6 | GUIUtilities.getStyleString(ch.style));↵
|
8 | } | | 7 | }
|
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 |