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 .setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint( new java.awt.Color(240, 240, 240), new java.awt.Color( 255, 255, 255), 0.0f, 0.7f, 0.6f, false)); monthlyWestDateHeaderBean .setTextAntiAlias(com.miginfocom.util.gfx.GfxUtil.AA_HINT_ON);
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)) }); monthlyWestDateHeaderBean .setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint( new java.awt.Color(255, 255, 255), new java.awt.Color( 247, 247, 247), 0.0f, 0.7f, 0.6f, false)); monthlyWestDateHeaderBean .setTextAntiAlias(com.miginfocom.util.gfx.GfxUtil.AA_HINT_ON);
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: 3 Number of AST nodes: 3
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)) });
18
		monthlyWestDateHeaderBean
18
		monthlyWestDateHeaderBean
19
				.setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint(
19
				.setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint(
20
						new java.awt.Color(240, 240, 240), new java.awt.Color(
20
						new java.awt.Color(255, 255, 255), new java.awt.Color(
21
								255, 255, 255), 0.0f, 0.7f, 0.6f, false));
21
								247, 247, 247), 0.0f, 0.7f, 0.6f, false));
22
		monthlyWestDateHeaderBean
22
		monthlyWestDateHeaderBean
23
				.setTextAntiAlias(com.miginfocom.util.gfx.GfxUtil.AA_HINT_ON);
23
				.setTextAntiAlias(com.miginfocom.util.gfx.GfxUtil.AA_HINT_ON);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    monthlyWestDateHeaderBean.setHeaderRows(new CellDecorationRow[] {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))});
    7
    monthlyWestDateHeaderBean.setHeaderRows(new CellDecorationRow[] {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))});
    7
    monthlyWestDateHeaderBean.setHeaderRows(new CellDecorationRow[] {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))});
    Differences
    Expression1Expression2Difference
    "'W 'w""'w'w"LITERAL_VALUE_MISMATCH
    17f24fLITERAL_VALUE_MISMATCH
    UIManager.getFont("Label.font")UIManager.getFont("Label.font").deriveFont(9f)TYPE_COMPATIBLE_REPLACEMENT
    7
    monthlyWestDateHeaderBean.setHeaderRows(new CellDecorationRow[] {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))});
    8
    monthlyWestDateHeaderBean.setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint(new java.awt.Color(240, 240, 240), new java.awt.Color(255, 255, 255), 0.0f, 0.7f, 0.6f, false));
    8
    monthlyWestDateHeaderBean.setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint(new java.awt.Color(240, 240, 240), new java.awt.Color(255, 255, 255), 0.0f, 0.7f, 0.6f, false));
    8
    monthlyWestDateHeaderBean.setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint(new java.awt.Color(255, 255, 255), new java.awt.Color(247, 247, 247), 0.0f, 0.7f, 0.6f, false));
    Differences
    Expression1Expression2Difference
    240255LITERAL_VALUE_MISMATCH
    240255LITERAL_VALUE_MISMATCH
    240255LITERAL_VALUE_MISMATCH
    255247LITERAL_VALUE_MISMATCH
    255247LITERAL_VALUE_MISMATCH
    255247LITERAL_VALUE_MISMATCH
    8
    monthlyWestDateHeaderBean.setBackgroundPaint(new com.miginfocom.util.gfx.ShapeGradientPaint(new java.awt.Color(255, 255, 255), new java.awt.Color(247, 247, 247), 0.0f, 0.7f, 0.6f, false));
    9
    monthlyWestDateHeaderBean.setTextAntiAlias(com.miginfocom.util.gfx.GfxUtil.AA_HINT_ON);
    9
    monthlyWestDateHeaderBean.setTextAntiAlias(com.miginfocom.util.gfx.GfxUtil.AA_HINT_ON);
    Precondition Violations (0)
    Row Violation