for( int i=0; i<consArgs.length; i++ )
{
try {
consArgsNameSpace.setTypedVariable(
consArgNames[i], consArgTypes[i], consArgs[i],
null/*modifiers*/);
} catch ( UtilEvalError e ) {
throw new InterpreterError("err setting local cons arg:"+e);
}
}
if(cachedActionNames != null)
{
for(int i = 0; i < cachedActionNames.length; i++)
{
actions.put(cachedActionNames[i],placeholder);
jEdit.setTemporaryProperty(cachedActionNames[i]
+ ".toggle",cachedActionToggleFlags[i]
? "true" : "false");
}
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/ClassGeneratorUtil.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/ActionSet.java
|
Method name: ConstructorArgs getConstructorArgs(String, This, Object[], int)
|
|
Method name: void ActionSet(PluginJAR, String[], boolean[], URL)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
| | | 1 | if(cachedActionNames != null)↵
|
| | | 2 | {↵
|
1 | for( int i=0; i<consArgs.length; i++ )↵ | | 3 | for(int i = 0; i <↵
|
2 | {↵ | | |
|
3 | try {↵ | | |
|
4 | consArgsNameSpace.setTypedVariable( ↵ | | |
|
5 | consArgNames[i], consArgTypes[i], consArg↵ | | 4 | cachedActionNames.length; i++)↵
|
| | | 5 | {↵
|
| | | 6 | actions.put(cachedActionNames[i],placeholder);↵
|
6 | s[i], ↵ | | 7 | jEdit.setTemporaryProperty(cachedActionNames[i]↵
|
7 | null/*modifiers*/);↵ | | 8 | ↵
|
8 | } catch ( UtilEvalError e ) {↵ | | 9 | + ".toggle",cach↵
|
9 | throw new InterpreterError("err setting local cons arg:"+e↵ | | 10 | edActionToggleFlags[i]↵
|
10 | );↵ | | 11 | ? "true" : "false");↵
|
11 | }↵ | | 12 | }↵
|
12 | } | | 13 | }
|
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 | Clones are in different classes |
Number of node comparisons | 1 |