File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/mainframe/MainFrameWindowStateBeanInfo.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/db/AliasGroupBeanInfo.java | |||
Method name: PropertyDescriptor[] getPropertyDescriptors()
|
Method name: PropertyDescriptor[] getPropertyDescriptors()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | try↵ | 1 | try↵ | |
2 | {↵ | 2 | {↵ | |
3 | PropertyDescriptor[] result = new PropertyDescriptor[2];↵ | 3 | PropertyDescriptor[] result = new PropertyDescriptor[2];↵ | |
4 | result[0] =↵ | 4 | result[0] =↵ | |
5 | new PropertyDescriptor(MainFrameWindowState.IPropertyNames.ALIASES_WINDOW_STATE,↵ | 5 | new PropertyDescriptor(↵ | |
6 | MainFrameWindowState.class, "getAliasesWindowState", "setAliasesWindowState");↵ | 6 | IPropertyNames.ID, AliasGroup.class, "getIdentifier", "setIdentifier");↵ | |
7 | result[1] =↵ | 7 | result[0] =↵ | |
8 | new PropertyDescriptor(MainFrameWindowState.IPropertyNames.DRIVERS_WINDOW_STATE,↵ | 8 | new PropertyDescriptor(↵ | |
9 | MainFrameWindowState.class, "getDriversWindowState", "setDriversWindowState");↵ | 9 | IPropertyNames.NAME, AliasGroup.class, "getName", "setName");↵ | |
10 | return result;↵ | 10 | return result;↵ | |
11 | }↵ | 11 | }↵ | |
12 | catch (IntrospectionException e)↵ | 12 | catch (IntrospectionException e)↵ | |
13 | {↵ | 13 | {↵ | |
14 | throw new Error(e);↵ | 14 | throw new Error(e);↵ | |
15 | } | 15 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 25 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 2.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||
---|---|---|---|---|---|---|---|---|
1 | try | 1 | try | |||||
2 | PropertyDescriptor[] result = new PropertyDescriptor[2]; | 2 | PropertyDescriptor[] result = new PropertyDescriptor[2]; | |||||
|
| 3 | result[0] = new PropertyDescriptor(IPropertyNames.ID, AliasGroup.class, "getIdentifier", "setIdentifier"); | |||||
3 | result[0] = new PropertyDescriptor(MainFrameWindowState.IPropertyNames.ALIASES_WINDOW_STATE, MainFrameWindowState.class, "getAliasesWindowState", "setAliasesWindowState"); |
| | |||||
|
| 4 | result[0] = new PropertyDescriptor(IPropertyNames.NAME, AliasGroup.class, "getName", "setName"); | |||||
4 | result[1] = new PropertyDescriptor(MainFrameWindowState.IPropertyNames.DRIVERS_WINDOW_STATE, MainFrameWindowState.class, "getDriversWindowState", "setDriversWindowState"); |
| | |||||
5 | return result; | 5 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result[0]=new PropertyDescriptor(IPropertyNames.ID,AliasGroup.class,"getIdentifier","setIdentifier"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result[0]=new PropertyDescriptor(IPropertyNames.ID,AliasGroup.class,"getIdentifier","setIdentifier"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |
3 | Unmatched statement result[0]=new PropertyDescriptor(MainFrameWindowState.IPropertyNames.ALIASES_WINDOW_STATE,MainFrameWindowState.class,"getAliasesWindowState","setAliasesWindowState"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement result[0]=new PropertyDescriptor(MainFrameWindowState.IPropertyNames.ALIASES_WINDOW_STATE,MainFrameWindowState.class,"getAliasesWindowState","setAliasesWindowState"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |
5 | Unmatched statement result[0]=new PropertyDescriptor(IPropertyNames.NAME,AliasGroup.class,"getName","setName"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |
6 | Unmatched statement result[1]=new PropertyDescriptor(MainFrameWindowState.IPropertyNames.DRIVERS_WINDOW_STATE,MainFrameWindowState.class,"getDriversWindowState","setDriversWindowState"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |