bufError.append(i18n.ERROR_PORT_MISSING + CR); if (!focusSet) { jtextfieldBckPort.requestFocusInWindow(); focusSet = true; }
bufError.append(i18n.ERROR_FILENAME_DATABASE_MISSING + CR); if (!focusSet) { jtextfieldBckDBFile.requestFocusInWindow(); focusSet = true; }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerBackupRestoreFrame.java File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerBackupRestoreFrame.java
Method name: boolean isBackupInputOK() Method name: boolean isBackupInputOK()
Number of AST nodes: 4 Number of AST nodes: 4
1
bufError.append(i18n.ERROR_PORT_MISSING + CR);
1
bufError.append(i18n.ERROR_FILENAME_DATABASE_MISSING + CR);
2
			if (!focusSet) {
2
			if (!focusSet) {
3
				jtextfieldBckPort.requestFocusInWindow();
3
				jtextfieldBckDBFile.requestFocusInWindow();
4
				focusSet = true;
4
				focusSet = true;
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.2
Clones locationClones are in the same method
Number of node comparisons11
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    13
    bufError.append(i18n.ERROR_PORT_MISSING + CR);
    13
    bufError.append(i18n.ERROR_PORT_MISSING + CR);
    20
    bufError.append(i18n.ERROR_FILENAME_DATABASE_MISSING + CR);
    Differences
    Expression1Expression2Difference
    ERROR_PORT_MISSINGERROR_FILENAME_DATABASE_MISSINGVARIABLE_NAME_MISMATCH
    20
    bufError.append(i18n.ERROR_FILENAME_DATABASE_MISSING + CR);
    14
    if (!focusSet)
    21
    if (!focusSet)
    15
    jtextfieldBckPort.requestFocusInWindow();
    15
    jtextfieldBckPort.requestFocusInWindow();
    22
    jtextfieldBckDBFile.requestFocusInWindow();
    Differences
    Expression1Expression2Difference
    jtextfieldBckPortjtextfieldBckDBFileVARIABLE_NAME_MISMATCH
    22
    jtextfieldBckDBFile.requestFocusInWindow();
    16
    focusSet = true;
    23
    focusSet = true;
    Precondition Violations (0)
    Row Violation