File tempFile = File.createTempFile(PREFIX, SUFFIX); _app.getDataCache().saveAliases(tempFile); files.add(tempFile); //i18n[DumpApplicationCommand.title.aliases=Aliases] titles.add(s_stringMgr.getString("DumpApplicationCommand.title.aliases"));
File tempFile = File.createTempFile(PREFIX, SUFFIX); _app.getDataCache().saveDrivers(tempFile); files.add(tempFile); //i18n[DumpApplicationCommand.title.drivers=Drivers] titles.add(s_stringMgr.getString("DumpApplicationCommand.title.drivers"));
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/DumpApplicationCommand.java
Method name: void execute() Method name: void execute()
Number of AST nodes: 4 Number of AST nodes: 4
1
File tempFile = File.createTempFile(PREFIX, SUFFIX);
1
File tempFile = File.createTempFile(PREFIX, SUFFIX);
2
				_app.getDataCache().saveAliases(tempFile);
2
				_app.getDataCache().saveDrivers(tempFile);
3
				files.add(tempFile);
3
				files.add(tempFile);
4
                //i18n[DumpApplicationCommand.title.aliases=Aliases]
4
                //i18n[DumpApplicationCommand.title.drivers=Drivers]
5
				titles.add(s_stringMgr.getString("DumpApplicationCommand.title.aliases"));
5
				titles.add(s_stringMgr.getString("DumpApplicationCommand.title.drivers"));
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 comparisons16
  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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    21
    File tempFile = File.createTempFile(PREFIX, SUFFIX);
    16
    File tempFile = File.createTempFile(PREFIX, SUFFIX);
    22
    _app.getDataCache().saveAliases(tempFile);
    22
    _app.getDataCache().saveAliases(tempFile);
    17
    _app.getDataCache().saveDrivers(tempFile);
    Differences
    Expression1Expression2Difference
    saveAliasessaveDriversMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression _app.getDataCache().saveAliases(tempFile) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _app.getDataCache().saveDrivers(tempFile) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _app.getDataCache().saveAliases(tempFile) is a void method call, and thus it cannot be parameterized
    Expression _app.getDataCache().saveDrivers(tempFile) is a void method call, and thus it cannot be parameterized
    17
    _app.getDataCache().saveDrivers(tempFile);
    23
    files.add(tempFile);
    18
    files.add(tempFile);
    24
    titles.add(s_stringMgr.getString("DumpApplicationCommand.title.aliases"));
    24
    titles.add(s_stringMgr.getString("DumpApplicationCommand.title.aliases"));
    19
    titles.add(s_stringMgr.getString("DumpApplicationCommand.title.drivers"));
    Differences
    Expression1Expression2Difference
    "DumpApplicationCommand.title.aliases""DumpApplicationCommand.title.drivers"LITERAL_VALUE_MISMATCH
    19
    titles.add(s_stringMgr.getString("DumpApplicationCommand.title.drivers"));
    Precondition Violations (4)
    Row Violation
    1Expression _app.getDataCache().saveAliases(tempFile) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _app.getDataCache().saveDrivers(tempFile) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _app.getDataCache().saveAliases(tempFile) is a void method call, and thus it cannot be parameterized
    4Expression _app.getDataCache().saveDrivers(tempFile) is a void method call, and thus it cannot be parameterized