commentTextArea.setEditable(false); //i18n[ColumnDetailsDialog.columnCommentLabel={0} does not //support column comments] String noColumnSupportMsg = s_stringMgr.getString( "ColumnDetailsDialog.columnCommentToolTip", dbName); commentTextArea.setToolTipText(noColumnSupportMsg);
nullableCheckBox.setEnabled(false); //i18n[ColumnDetailsDialog.columnNullLabel={0} does not //support altering column nullability] String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnNullToolTip", dbName); nullableCheckBox.setToolTipText(noColumnSupportMsg);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java
Method name: void itemStateChanged(ItemEvent) Method name: void itemStateChanged(ItemEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
commentTextArea.setEditable(false);
1
nullableCheckBox.setEnabled(false);
2
                //i18n[ColumnDetailsDialog.columnCommentLabel={0} does not 
2
                    //i18n[ColumnDetailsDialog.columnNullLabel={0} does not 
3
                //support column comments]
3
                    //support 
4
altering column nullability]
4
                String noColumnSupportMsg =
5
                    String noColumnSupportMsg =
6
 
5
                    s_stringMgr.getString(
7
                        s_stringMgr.getString(
6
                            "ColumnDetailsDialog.columnCommentToolTip",
8
"ColumnDetailsDialog.columnNullToolTip",
7
                            dbName);
9
                                              dbName);
8
                commentTextArea.setToolTipText(noColumnSupportMsg);
10
                    nullableCheckBox.setToolTipText(noColumnSupportMsg);
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 the same method
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
    4
    commentTextArea.setEditable(false);
    4
    commentTextArea.setEditable(false);
    11
    nullableCheckBox.setEnabled(false);
    Differences
    Expression1Expression2Difference
    setEditablesetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    commentTextAreanullableCheckBoxVARIABLE_NAME_MISMATCH
    javax.swing.JTextAreajavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression commentTextArea.setEditable(false) is a void method call, and thus it cannot be parameterized
    Expression nullableCheckBox.setEnabled(false) is a void method call, and thus it cannot be parameterized
    11
    nullableCheckBox.setEnabled(false);
    5
    String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnCommentToolTip", dbName);
    5
    String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnCommentToolTip", dbName);
    12
    String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnNullToolTip", dbName);
    Differences
    Expression1Expression2Difference
    "ColumnDetailsDialog.columnCommentToolTip""ColumnDetailsDialog.columnNullToolTip"LITERAL_VALUE_MISMATCH
    12
    String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnNullToolTip", dbName);
    6
    commentTextArea.setToolTipText(noColumnSupportMsg);
    6
    commentTextArea.setToolTipText(noColumnSupportMsg);
    13
    nullableCheckBox.setToolTipText(noColumnSupportMsg);
    Differences
    Expression1Expression2Difference
    commentTextAreanullableCheckBoxVARIABLE_NAME_MISMATCH
    javax.swing.JTextAreajavax.swing.JCheckBoxSUBCLASS_TYPE_MISMATCH
    13
    nullableCheckBox.setToolTipText(noColumnSupportMsg);
    Precondition Violations (2)
    Row Violation
    1Expression commentTextArea.setEditable(false) is a void method call, and thus it cannot be parameterized
    2Expression nullableCheckBox.setEnabled(false) is a void method call, and thus it cannot be parameterized