minDate = ((date == null) ? null : copyDate(date, minDate)); minDay = ((date == null) ? (-1) : minDate.get(Calendar.DATE)); _refresh();
maxDate = ((date == null) ? null : copyDate(date, maxDate)); maxDay = ((date == null) ? (-1) : maxDate.get(Calendar.DATE)); _refresh();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/DateChooser.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/DateChooser.java
Method name: void setMinimumDate(Calendar) Method name: void setMaximumDate(Calendar)
Number of AST nodes: 3 Number of AST nodes: 3
1
minDate = ((date == null) ? null : copyDate(date, minDate));
1
maxDate = ((date == null) ? null : copyDate(date, maxDate));
2
		minDay = ((date == null) ? (-1) : minDate.get(Calendar.DATE));
2
		maxDay = ((date == null) ? (-1) : maxDate.get(Calendar.DATE));
3
		_refresh();
3
		_refresh();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons4
  1. {Non-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
    1
    minDate = ((date == null) ? null : copyDate(date, minDate));
    1
    minDate = ((date == null) ? null : copyDate(date, minDate));
    1
    maxDate = ((date == null) ? null : copyDate(date, maxDate));
    Differences
    Expression1Expression2Difference
    minDatemaxDateVARIABLE_NAME_MISMATCH
    minDatemaxDateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression minDate is a field being modified, and thus it cannot be parameterized
    Expression maxDate is a field being modified, and thus it cannot be parameterized
    1
    maxDate = ((date == null) ? null : copyDate(date, maxDate));
    2
    minDay = ((date == null) ? (-1) : minDate.get(Calendar.DATE));
    2
    minDay = ((date == null) ? (-1) : minDate.get(Calendar.DATE));
    2
    maxDay = ((date == null) ? (-1) : maxDate.get(Calendar.DATE));
    Differences
    Expression1Expression2Difference
    minDaymaxDayVARIABLE_NAME_MISMATCH
    minDatemaxDateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression minDay is a field being modified, and thus it cannot be parameterized
    Expression maxDay is a field being modified, and thus it cannot be parameterized
    Expression minDate cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression maxDate cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    maxDay = ((date == null) ? (-1) : maxDate.get(Calendar.DATE));
    3
    _refresh();
    3
    _refresh();
    Precondition Violations (6)
    Row Violation
    1Expression minDate is a field being modified, and thus it cannot be parameterized
    2Expression maxDate is a field being modified, and thus it cannot be parameterized
    3Expression minDay is a field being modified, and thus it cannot be parameterized
    4Expression maxDay is a field being modified, and thus it cannot be parameterized
    5Expression minDate cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression maxDate cannot be parameterized, because it has dependencies to/from statements that will be extracted