for (ICommand _command : commandList) { _command.releaseAllFolderLocks(); }
for (ICommand _command : commandList) { _command.execute(worker); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/command/CompoundCommand.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/command/CompoundCommand.java
Method name: void releaseAllFolderLocks() Method name: void execute(IWorkerStatusController)
Number of AST nodes: 2 Number of AST nodes: 2
1
for (ICommand _command : commandList) {
1
for (ICommand _command : commandList) {
2
			_command.releaseAllFolderLocks();
2
			_command.execute(worker);
3
		}
3
		}
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 comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)4867.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    for (ICommand _command : commandList)
    1
    for (ICommand _command : commandList)
    2
    _command.releaseAllFolderLocks();
    2
    _command.releaseAllFolderLocks();
    2
    _command.execute(worker);
    Differences
    Expression1Expression2Difference
    releaseAllFolderLocksexecuteMETHOD_INVOCATION_NAME_MISMATCH
    _command.releaseAllFolderLocks()_command.execute(worker)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression _command.releaseAllFolderLocks() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _command.execute(worker) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _command.releaseAllFolderLocks() is a void method call, and thus it cannot be parameterized
    Expression _command.execute(worker) is a void method call, and thus it cannot be parameterized
    Expression _command.releaseAllFolderLocks() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _command.execute(worker) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _command.releaseAllFolderLocks() is a void method call, and thus it cannot be parameterized
    Expression _command.execute(worker) is a void method call, and thus it cannot be parameterized
    2
    _command.execute(worker);
    Precondition Violations (8)
    Row Violation
    1Expression _command.releaseAllFolderLocks() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression _command.execute(worker) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression _command.releaseAllFolderLocks() is a void method call, and thus it cannot be parameterized
    4Expression _command.execute(worker) is a void method call, and thus it cannot be parameterized
    5Expression _command.releaseAllFolderLocks() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression _command.execute(worker) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression _command.releaseAllFolderLocks() is a void method call, and thus it cannot be parameterized
    8Expression _command.execute(worker) is a void method call, and thus it cannot be parameterized