DatabaseObjectQualifier qualifier = new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName()); String result = _dialect.getCreateSequenceSQL(customDialog.getSequenceName(), customDialog.getIncrement(), customDialog.getMinimum(), customDialog.getMaximum(), customDialog.getStart(), customDialog.getCache(), customDialog.isCycled(), qualifier, _sqlPrefs); return new String[] { result };
DatabaseObjectQualifier qualifier = new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName()); String result = _dialect.getCreateViewSQL(customDialog.getViewName(), customDialog.getViewDefinition(), customDialog.getCheckOption(), qualifier, _sqlPrefs); return new String[] { result };
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/AddSequenceCommand.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/AddViewCommand.java
Method name: String[] generateSQLStatements() Method name: String[] generateSQLStatements()
Number of AST nodes: 3 Number of AST nodes: 3
1
DatabaseObjectQualifier qualifier =
1
DatabaseObjectQualifier qualifier =
2
			new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
2
			new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
3
		String result =
3
		String result =
4
			_dialect.getCreateSequenceSQL(customDialog.getSequenceName(),
4
			_dialect.getCreateViewSQL(customDialog.getViewName(),
5
				customDialog.getIncrement(),
5
				customDialog.get
6
				customDialog.getMinimum(),
7
				customDialog.getMaximum(),
8
				customDialog.getStart(),
9
				customDialog.getCache(),
10
				customDialog.isCycled
6
ViewDefinition(),
11
(),
7
				customDialog.getCheckOption(),
12
				qualifier,
8
				qualifier,
13
				_sqlPrefs);
9
				_sqlPrefs);
14
		return new String[] { result };
10
		return new String[] { result };
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 different classes having the same super class
Number of node comparisons5
  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
    1
    DatabaseObjectQualifier qualifier = new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
    1
    DatabaseObjectQualifier qualifier = new DatabaseObjectQualifier(_info[0].getCatalogName(), _info[0].getSchemaName());
    2
    String result = _dialect.getCreateSequenceSQL(customDialog.getSequenceName(), customDialog.getIncrement(), customDialog.getMinimum(), customDialog.getMaximum(), customDialog.getStart(), customDialog.getCache(), customDialog.isCycled(), qualifier, _sqlPrefs);
    2
    String result = _dialect.getCreateSequenceSQL(customDialog.getSequenceName(), customDialog.getIncrement(), customDialog.getMinimum(), customDialog.getMaximum(), customDialog.getStart(), customDialog.getCache(), customDialog.isCycled(), qualifier, _sqlPrefs);
    2
    String result = _dialect.getCreateViewSQL(customDialog.getViewName(), customDialog.getViewDefinition(), customDialog.getCheckOption(), qualifier, _sqlPrefs);
    Differences
    Expression1Expression2Difference
    getCreateSequenceSQLgetCreateViewSQLMETHOD_INVOCATION_NAME_MISMATCH
    _dialect.getCreateSequenceSQL(customDialog.getSequenceName(),customDialog.getIncrement(),customDialog.getMinimum(),customDialog.getMaximum(),customDialog.getStart(),customDialog.getCache(),customDialog.isCycled(),qualifier,_sqlPrefs)_dialect.getCreateViewSQL(customDialog.getViewName(),customDialog.getViewDefinition(),customDialog.getCheckOption(),qualifier,_sqlPrefs)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression _dialect.getCreateSequenceSQL(customDialog.getSequenceName(),customDialog.getIncrement(),customDialog.getMinimum(),customDialog.getMaximum(),customDialog.getStart(),customDialog.getCache(),customDialog.isCycled(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _dialect.getCreateViewSQL(customDialog.getViewName(),customDialog.getViewDefinition(),customDialog.getCheckOption(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _dialect.getCreateSequenceSQL(customDialog.getSequenceName(),customDialog.getIncrement(),customDialog.getMinimum(),customDialog.getMaximum(),customDialog.getStart(),customDialog.getCache(),customDialog.isCycled(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _dialect.getCreateViewSQL(customDialog.getViewName(),customDialog.getViewDefinition(),customDialog.getCheckOption(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    String result = _dialect.getCreateViewSQL(customDialog.getViewName(), customDialog.getViewDefinition(), customDialog.getCheckOption(), qualifier, _sqlPrefs);
    3
    return new String[] {result};
    3
    return new String[] {result};
    Precondition Violations (4)
    Row Violation
    1Expression _dialect.getCreateSequenceSQL(customDialog.getSequenceName(),customDialog.getIncrement(),customDialog.getMinimum(),customDialog.getMaximum(),customDialog.getStart(),customDialog.getCache(),customDialog.isCycled(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _dialect.getCreateViewSQL(customDialog.getViewName(),customDialog.getViewDefinition(),customDialog.getCheckOption(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _dialect.getCreateSequenceSQL(customDialog.getSequenceName(),customDialog.getIncrement(),customDialog.getMinimum(),customDialog.getMaximum(),customDialog.getStart(),customDialog.getCache(),customDialog.isCycled(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression _dialect.getCreateViewSQL(customDialog.getViewName(),customDialog.getViewDefinition(),customDialog.getCheckOption(),qualifier,_sqlPrefs) cannot be parameterized, because it has dependencies to/from statements that will be extracted