File path: /jEdit-4.2/src/bsh/BshMethod.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/View.java | |||
Method name: void BshMethod(String, Class, String[], Class[], BSHBlock, NameSpace, Modifiers)
|
Method name: void ViewConfig(boolean, String, int, int, int, int, int)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 7 | |||
1 | this.name = name;↵ | 1 | this.↵ | |
2 | this.creturnType = returnType;↵ | 2 | plainView = plainView;↵ | |
3 | this.paramNames = paramNames;↵ | 3 | this.↵ | |
4 | if ( paramNames != null )↵ | |||
5 | this.numArgs = paramNames.length↵ | 4 | splitConfig = splitConfig;↵ | |
6 | ;↵ | 5 | this.x = x;↵ | |
7 | this.cparamTypes = paramTypes;↵ | 6 | this.y = y;↵ | |
8 | this.methodBody = methodBody;↵ | 7 | this.width = width;↵ | |
9 | this.declaringNameSpace = declaringNameSpace;↵ | 8 | this.height = height;↵ | |
10 | this.modifiers = modifiers; | 9 | this.extState = extState; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 43 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 8 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | this.plainView = plainView; | |||||||||||||||||
1 | this.name = name; |
| 2 | this.splitConfig = splitConfig; | |||||||||||||||
2 | this.creturnType = returnType; | | |||||||||||||||||
| 3 | this.x = x; | |||||||||||||||||
3 | this.paramNames = paramNames; | | |||||||||||||||||
| 4 | this.y = y; | |||||||||||||||||
4 | if (paramNames != null) | | |||||||||||||||||
5 | this.numArgs = paramNames.length; | | |||||||||||||||||
| 5 | this.width = width; | |||||||||||||||||
| 6 | this.height = height; | |||||||||||||||||
6 | this.cparamTypes = paramTypes; | | |||||||||||||||||
| 7 | this.extState = extState; | |||||||||||||||||
7 | this.methodBody = methodBody; | | |||||||||||||||||
8 | this.declaringNameSpace = declaringNameSpace; | | |||||||||||||||||
9 | this.modifiers = modifiers; | |
Row | Violation |
---|---|
1 | Expression this.name is a field being modified, and thus it cannot be parameterized |
2 | Expression this.splitConfig is a field being modified, and thus it cannot be parameterized |