monthlyWestDateHeaderBean
.setHeaderRows(new CellDecorationRow[] {
// showing the week number
new CellDecorationRow(
DateRangeI.RANGE_TYPE_WEEK,
new DateFormatList("'W 'w", null),
new AtFixed(17f),
new AbsRect(new AtStart(0.0f), new AtStart(0.0f),
new AtEnd(0.0f), new AtEnd(0.0f), null, null,
null),
(java.awt.Paint[]) null,
new java.awt.Paint[] { labelColor },
new DefaultRepetition(0, 1, null, null),
new java.awt.Font[] { UIManager.getFont("Label.font") },
new java.lang.Integer[] { null }, new AtFraction(0.5f),
new AtStart(4f)) });
monthlyWestDateHeaderBean.setHeaderRows(new CellDecorationRow[] {
// showing the week number
new CellDecorationRow(DateRangeI.RANGE_TYPE_WEEK,
new DateFormatList("'w'w", null), new AtFixed(24f),
new AbsRect(new AtStart(0.0f), new AtStart(0.0f),
new AtEnd(0.0f), new AtEnd(0.0f), null, null,
null), (java.awt.Paint[]) null,
new java.awt.Paint[] { labelColor },
new DefaultRepetition(0, 1, null, null),
new java.awt.Font[] { UIManager.getFont("Label.font")
.deriveFont(9f) },
new java.lang.Integer[] { null }, new AtFraction(0.5f),
new AtStart(4f)) });
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/DateAreaBeanFactory.java
|
|
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/navigation/DateAreaBeanFactory.java
|
Method name: DateAreaBean initMonthlyDateArea()
|
|
Method name: DateAreaBean initDateArea()
|
Number of AST nodes: 1
|
|
Number of AST nodes: 1
|
|
1 | monthlyWestDateHeaderBean↵ | | 1 | monthlyWestDateHeaderBean↵
|
2 | .setHeaderRows(new CellDecorationRow[] {↵ | | 2 | .setHeaderRows(new CellDecorationRow[] {↵
|
3 | // showing the week number↵ | | 3 | // showing the week number↵
|
4 | new CellDecorationRow(↵ | | 4 | new CellDecorationRow(↵
|
5 | DateRangeI.RANGE_TYPE_WEEK,↵ | | 5 | DateRangeI.RANGE_TYPE_WEEK,↵
|
6 | new DateFormatList("'W 'w", null),↵ | | 6 | new DateFormatList("'w'w", null),↵
|
7 | new AtFixed(17f),↵ | | 7 | new AtFixed(24f),↵
|
8 | new AbsRect(new AtStart(0.0f), new AtStart(0.0f),↵ | | 8 | new AbsRect(new AtStart(0.0f), new AtStart(0.0f),↵
|
9 | new AtEnd(0.0f), new AtEnd(0.0f), null, null,↵ | | 9 | new AtEnd(0.0f), new AtEnd(0.0f), null, null,↵
|
10 | null),↵ | | 10 | null),↵
|
11 | (java.awt.Paint[]) null,↵ | | 11 | (java.awt.Paint[]) null,↵
|
12 | new java.awt.Paint[] { labelColor },↵ | | 12 | new java.awt.Paint[] { labelColor },↵
|
13 | new DefaultRepetition(0, 1, null, null),↵ | | 13 | new DefaultRepetition(0, 1, null, null),↵
|
14 | new java.awt.Font[] { UIManager.getFont("Label.font")↵ | | 14 | new java.awt.Font[] { UIManager.getFont("Label.font")↵
|
15 | },↵ | | 15 | .deriveFont(9f) },↵
|
16 | new java.lang.Integer[] { null }, new AtFraction(0.5f),↵ | | 16 | new java.lang.Integer[] { null }, new AtFraction(0.5f),↵
|
17 | new AtStart(4f)) }); | | 17 | new AtStart(4f)) });
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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) | 0.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |