if (statusBarBackgroundColor != null) { _props.setOverrideStatusBarBackgroundColor(true); _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB()); }
if (objectTreeBackgroundColor != null) { _props.setOverrideObjectTreeBackgroundColor(true); _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()); }
Clone fragments detected by clone detection tool
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 (statusBarBackgroundColor != null)
1
if (objectTreeBackgroundColor != null)
2
			{
2
			{
3
				_props.setOverrideStatusBarBackgroundColor(true);
3
				_props.setOverrideObjectTreeBackgroundColor(true);
4
				_props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB());
4
				_props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB());
5
			}
5
			}
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.1
Clones locationClones are in the same method
Number of node comparisons10
  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)2.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    12
    if (statusBarBackgroundColor != null)
    12
    if (statusBarBackgroundColor != null)
    7
    if (objectTreeBackgroundColor != null)
    Differences
    Expression1Expression2Difference
    statusBarBackgroundColorobjectTreeBackgroundColorVARIABLE_NAME_MISMATCH
    7
    if (objectTreeBackgroundColor != null)
    13
    _props.setOverrideStatusBarBackgroundColor(true);
    13
    _props.setOverrideStatusBarBackgroundColor(true);
    8
    _props.setOverrideObjectTreeBackgroundColor(true);
    Differences
    Expression1Expression2Difference
    setOverrideStatusBarBackgroundColorsetOverrideObjectTreeBackgroundColorMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _props.setOverrideStatusBarBackgroundColor(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _props.setOverrideObjectTreeBackgroundColor(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _props.setOverrideStatusBarBackgroundColor(true) is a void method call, and thus it cannot be parameterized
    Expression _props.setOverrideObjectTreeBackgroundColor(true) is a void method call, and thus it cannot be parameterized
    8
    _props.setOverrideObjectTreeBackgroundColor(true);
    14
    _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB());
    14
    _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB());
    9
    _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB());
    Differences
    Expression1Expression2Difference
    statusBarBackgroundColorobjectTreeBackgroundColorVARIABLE_NAME_MISMATCH
    setStatusBarBackgroundColorRgbValuesetObjectTreeBackgroundColorRgbValueMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB()) is a void method call, and thus it cannot be parameterized
    Expression _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()) is a void method call, and thus it cannot be parameterized
    9
    _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB());
    Precondition Violations (8)
    Row Violation
    1Expression _props.setOverrideStatusBarBackgroundColor(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _props.setOverrideObjectTreeBackgroundColor(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _props.setOverrideStatusBarBackgroundColor(true) is a void method call, and thus it cannot be parameterized
    4Expression _props.setOverrideObjectTreeBackgroundColor(true) is a void method call, and thus it cannot be parameterized
    5Expression _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression _props.setStatusBarBackgroundColorRgbValue(statusBarBackgroundColor.getRGB()) is a void method call, and thus it cannot be parameterized
    8Expression _props.setObjectTreeBackgroundColorRgbValue(objectTreeBackgroundColor.getRGB()) is a void method call, and thus it cannot be parameterized