File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/ColorPropertiesPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/ColorPropertiesPanel.java | |||
Method name: SQLAliasColorProperties getSQLAliasColorProperties()
|
Method name: SQLAliasColorProperties getSQLAliasColorProperties()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (objectTreeBackgroundColor != null)↵ | 1 | if (toolbarBackgroundColor != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | _props.setOverrideObjectTreeBackgroundColor(true);↵ | 3 | _props.setOverrideToolbarBackgroundColor(true);↵ | |
4 | _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB());↵ | 4 | _props.setToolbarBackgroundColorRgbValue(toolbarBackgroundColor.getRGB());↵ | |
5 | } | 5 |
| |
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 the same method |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
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) | 2.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (objectTreeBackgroundColor != null) |
| 2 | if (toolbarBackgroundColor != null) | |||||||||||||||||
8 | _props.setOverrideObjectTreeBackgroundColor(true); |
| 3 | _props.setOverrideToolbarBackgroundColor(true); | |||||||||||||||||
9 | _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()); |
| 4 | _props.setToolbarBackgroundColorRgbValue(toolbarBackgroundColor.getRGB()); |
Row | Violation |
---|---|
1 | Expression _props.setOverrideObjectTreeBackgroundColor(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression _props.setOverrideToolbarBackgroundColor(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression _props.setOverrideObjectTreeBackgroundColor(true) is a void method call, and thus it cannot be parameterized |
4 | Expression _props.setOverrideToolbarBackgroundColor(true) is a void method call, and thus it cannot be parameterized |
5 | Expression _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression _props.setToolbarBackgroundColorRgbValue(toolbarBackgroundColor.getRGB()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()) is a void method call, and thus it cannot be parameterized |
8 | Expression _props.setToolbarBackgroundColorRgbValue(toolbarBackgroundColor.getRGB()) is a void method call, and thus it cannot be parameterized |