File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java | |||
Method name: int getValue()
|
Method name: int getValue()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (getSelectedIndex() == 3)↵ | 1 | if (getSelectedIndex() == 3)↵ | |
2 | return DateFormat.SHORT;↵ | 2 | return DateFormat.SHORT;↵ | |
3 | else if (getSelectedIndex() == 2)↵ | 3 | else if (getSelectedIndex() == 2)↵ | |
4 | return DateFormat.MEDIUM;↵ | 4 | return DateFormat.MEDIUM;↵ | |
5 | else if (getSelectedIndex() == 1)↵ | 5 | else if (getSelectedIndex() == 1)↵ | |
6 | return DateFormat.LONG;↵ | 6 | return DateFormat.LONG;↵ | |
7 | else return DateFormat.FULL; | 7 | else return DateFormat.FULL; | |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 7 |
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.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | if (getSelectedIndex() == 3) | 1 | if (getSelectedIndex() == 3) | |
2 | return DateFormat.SHORT; | 2 | return DateFormat.SHORT; | |
3 | else if (getSelectedIndex() == 2) | 3 | else if (getSelectedIndex() == 2) | |
4 | return DateFormat.MEDIUM; | 4 | return DateFormat.MEDIUM; | |
5 | else if (getSelectedIndex() == 1) | 5 | else if (getSelectedIndex() == 1) | |
6 | return DateFormat.LONG; | 6 | return DateFormat.LONG; | |
else | else | |||
7 | return DateFormat.FULL; | 7 | return DateFormat.FULL; |
Row | Violation |
---|