File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/WindowStateBeanInfo.java | File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/FolderBeanInfo.java | |||
Method name: PropertyDescriptor[] getPropertyDescriptors()
|
Method name: PropertyDescriptor[] getPropertyDescriptors()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | try↵ | 1 | try↵ | |
2 | {↵ | 2 | {↵ | |
3 | PropertyDescriptor[] s_dscrs = new PropertyDescriptor[3];↵ | 3 | PropertyDescriptor[] s_descriptors = new PropertyDescriptor[3];↵ | |
4 | s_dscrs[0] = new PropertyDescriptor(WindowState.IPropertyNames.BOUNDS,↵ | 4 | s_descriptors[0] = new PropertyDescriptor(Folder.IPropertyNames.↵ | |
5 | WindowState.class,↵ | |||
6 | "getBounds", "setBounds");↵ | 5 | ID, Folder.class, "getIdentifier", "setIdentifier");↵ | |
7 | s_dscrs[1] = new PropertyDescriptor(WindowState.IPropertyNames.VISIBLE,↵ | 6 | s_descriptors[1] = new PropertyDescriptor(Folder.IPropertyNames.↵ | |
8 | WindowState.class,↵ | |||
9 | "isVisible", "setVisible");↵ | 7 | NAME, Folder.class, "getName", "setName");↵ | |
10 | s_dscrs[2] = new PropertyDescriptor(WindowState.IPropertyNames.FRAME_EXTENDED_STATE,↵ | 8 | s_descriptors[2] = new IndexedPropertyDescriptor(Folder.IPropertyNames.↵ | |
11 | WindowState.class,↵ | 9 | SUB_FOLDERS, Folder.class,↵ | |
12 | "getFrameExtendedState", "setFrameExtendedState");↵ | 10 | "getSubFolders", "setSubFolders", "getSubFolder", "setSubFolder");↵ | |
13 | ↵ | |||
14 | return s_dscrs;↵ | 11 | return s_descriptors;↵ | |
15 | }↵ | 12 | }↵ | |
16 | catch (IntrospectionException e)↵ | 13 | catch (IntrospectionException e)↵ | |
17 | {↵ | 14 | {↵ | |
18 | throw new Error(e);↵ | 15 | throw new Error(e);↵ | |
19 | } | 16 |
| |
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 having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 6.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | try | 1 | try | |||||||||||||||||||||||||||||||
2 | PropertyDescriptor[] s_dscrs = new PropertyDescriptor[3]; |
| 2 | PropertyDescriptor[] s_descriptors = new PropertyDescriptor[3]; | ||||||||||||||||||||||||||||||
3 | s_dscrs[0] = new PropertyDescriptor(WindowState.IPropertyNames.BOUNDS, WindowState.class, "getBounds", "setBounds"); |
| 3 | s_descriptors[0] = new PropertyDescriptor(Folder.IPropertyNames.ID, Folder.class, "getIdentifier", "setIdentifier"); | ||||||||||||||||||||||||||||||
4 | s_dscrs[1] = new PropertyDescriptor(WindowState.IPropertyNames.VISIBLE, WindowState.class, "isVisible", "setVisible"); |
| 4 | s_descriptors[1] = new PropertyDescriptor(Folder.IPropertyNames.NAME, Folder.class, "getName", "setName"); | ||||||||||||||||||||||||||||||
5 | s_dscrs[2] = new PropertyDescriptor(WindowState.IPropertyNames.FRAME_EXTENDED_STATE, WindowState.class, "getFrameExtendedState", "setFrameExtendedState"); |
| 5 | s_descriptors[2] = new IndexedPropertyDescriptor(Folder.IPropertyNames.SUB_FOLDERS, Folder.class, "getSubFolders", "setSubFolders", "getSubFolder", "setSubFolder"); | ||||||||||||||||||||||||||||||
6 | return s_dscrs; |
| 6 | return s_descriptors; |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.fw.gui.WindowState does not match with type net.sourceforge.squirrel_sql.plugins.favs.Folder |
2 | Type net.sourceforge.squirrel_sql.fw.gui.WindowState.IPropertyNames does not match with type net.sourceforge.squirrel_sql.plugins.favs.Folder.IPropertyNames |
3 | Type net.sourceforge.squirrel_sql.fw.gui.WindowState does not match with type net.sourceforge.squirrel_sql.plugins.favs.Folder |
4 | Type net.sourceforge.squirrel_sql.fw.gui.WindowState.IPropertyNames does not match with type net.sourceforge.squirrel_sql.plugins.favs.Folder.IPropertyNames |
5 | Expression new PropertyDescriptor(WindowState.IPropertyNames.FRAME_EXTENDED_STATE,WindowState.class,"getFrameExtendedState","setFrameExtendedState") is a method call throwing exception(s) that should be caught by a try block that will be extracted |
6 | Expression new IndexedPropertyDescriptor(Folder.IPropertyNames.SUB_FOLDERS,Folder.class,"getSubFolders","setSubFolders","getSubFolder","setSubFolder") is a method call throwing exception(s) that should be caught by a try block that will be extracted |
7 | Expression new PropertyDescriptor(WindowState.IPropertyNames.FRAME_EXTENDED_STATE,WindowState.class,"getFrameExtendedState","setFrameExtendedState") is a method call throwing exception(s) that should be caught by a try block that will be extracted |
8 | Expression new IndexedPropertyDescriptor(Folder.IPropertyNames.SUB_FOLDERS,Folder.class,"getSubFolders","setSubFolders","getSubFolder","setSubFolder") is a method call throwing exception(s) that should be caught by a try block that will be extracted |