File path: /sql12/plugins/sqlbookmark/src/net/sourceforge/squirrel_sql/plugins/sqlbookmark/SQLBookmarkPlugin.java | File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/GraphController.java | |||
Method name: void rebuildMenu()
|
Method name: void GraphController(ISession, GraphPlugin, GraphXmlSerializer)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Bookmark[] defaultBookmarks = DefaultBookmarksFactory.getDefaultBookmarks();↵ | 1 | TableFrameControllerXmlBean[] tableFrameControllerXmls = graphControllerXmlBean.getTableFrameControllerXmls();↵ | |
2 | for (int i = 0; i < defaultBookmarks.length; i++)↵ | 2 | for (int i = 0; i < tableFrameControllerXmls.length; i++)↵ | |
3 | {↵ | 3 | {↵ | |
4 | addBookmarkItem(defaultBookmarks[i]);↵ | 4 | addTableIntern(null, null, null, null, tableFrameControllerXmls[i]);↵ | |
5 | } | 5 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11 | Bookmark[] defaultBookmarks = DefaultBookmarksFactory.getDefaultBookmarks(); | | |||||||||||||||||||||||
| 22 | TableFrameControllerXmlBean[] tableFrameControllerXmls = graphControllerXmlBean.getTableFrameControllerXmls(); | |||||||||||||||||||||||
12 | for (int i = 0; i < defaultBookmarks.length; i++) |
| 23 | for (int i = 0; i < tableFrameControllerXmls.length; i++) | |||||||||||||||||||||
13 | addBookmarkItem(defaultBookmarks[i]); |
| 24 | addTableIntern(null, null, null, null, tableFrameControllerXmls[i]); |
Row | Violation |
---|---|
1 | Type int of variable defaultBookmarks.length does not match with type int of variable tableFrameControllerXmls.length |
2 | Expression addBookmarkItem(defaultBookmarks[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression addTableIntern(null,null,null,null,tableFrameControllerXmls[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression addBookmarkItem(defaultBookmarks[i]) is a void method call, and thus it cannot be parameterized |
5 | Expression addTableIntern(null,null,null,null,tableFrameControllerXmls[i]) is a void method call, and thus it cannot be parameterized |
6 | Expression addBookmarkItem(defaultBookmarks[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression addTableIntern(null,null,null,null,tableFrameControllerXmls[i]) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression addBookmarkItem(defaultBookmarks[i]) is a void method call, and thus it cannot be parameterized |
9 | Expression addTableIntern(null,null,null,null,tableFrameControllerXmls[i]) is a void method call, and thus it cannot be parameterized |
10 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.sqlbookmark.SQLBookmarkPlugin and net.sourceforge.squirrel_sql.plugins.graph.GraphController do not have a common superclass |