if (alias == null) { throw new IllegalArgumentException("ISQLAlias == null"); } moveToFront(_aliasWinFactory.getModifySheet(alias));
if (alias == null) { throw new IllegalArgumentException("ISQLAlias == null"); } moveToFront(_aliasWinFactory.getCopySheet(alias));
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/AliasWindowManager.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/AliasWindowManager.java
Method name: void showModifyAliasInternalFrame(ISQLAlias) Method name: void showCopyAliasInternalFrame(SQLAlias)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (alias == null)
1
if (alias == null)
2
		{
2
		{
3
			throw new IllegalArgumentException("ISQLAlias == null");
3
			throw new IllegalArgumentException("ISQLAlias == null");
4
		}
4
		}
5
		moveToFront(_aliasWinFactory.getModifySheet(alias));
5
		moveToFront(_aliasWinFactory.getCopySheet(alias));
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.1
Clones locationClones are declared in the same class
Number of node comparisons5
  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)1050.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (alias == null)
    1
    if (alias == null)
    1
    if (alias == null)
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.fw.sql.ISQLAliasnet.sourceforge.squirrel_sql.client.gui.db.SQLAliasSUBCLASS_TYPE_MISMATCH
    1
    if (alias == null)
    2
    throw new IllegalArgumentException("ISQLAlias == null");
    2
    throw new IllegalArgumentException("ISQLAlias == null");
    3
    moveToFront(_aliasWinFactory.getModifySheet(alias));
    3
    moveToFront(_aliasWinFactory.getModifySheet(alias));
    3
    moveToFront(_aliasWinFactory.getCopySheet(alias));
    Differences
    Expression1Expression2Difference
    net.sourceforge.squirrel_sql.fw.sql.ISQLAliasnet.sourceforge.squirrel_sql.client.gui.db.SQLAliasSUBCLASS_TYPE_MISMATCH
    getModifySheetgetCopySheetMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _aliasWinFactory.getModifySheet(alias) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _aliasWinFactory.getCopySheet(alias) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    moveToFront(_aliasWinFactory.getCopySheet(alias));
    Precondition Violations (2)
    Row Violation
    1Expression _aliasWinFactory.getModifySheet(alias) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _aliasWinFactory.getCopySheet(alias) cannot be parameterized, because it has dependencies to/from statements that will be extracted