totalMemory = mem; totalMemoryTextField.setValue(new Integer(mem)); progressBar.setMaximum(mem);
currentMemory = mem; currentMemoryTextField.setValue(new Integer(mem)); progressBar.setValue(mem);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java
Method name: void setTotalMemory(int) Method name: void setCurrentMemory(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
totalMemory = mem;
1
currentMemory = mem;
2
			totalMemoryTextField.setValue(new Integer(mem));
2
			currentMemoryTextField.setValue(new Integer(mem));
3
			progressBar.setMaximum(mem);
3
			progressBar.setValue(mem);
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 declared in the same 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
    totalMemory = mem;
    1
    totalMemory = mem;
    1
    currentMemory = mem;
    Differences
    Expression1Expression2Difference
    totalMemorycurrentMemoryVARIABLE_NAME_MISMATCH
    1
    currentMemory = mem;
    2
    totalMemoryTextField.setValue(new Integer(mem));
    2
    totalMemoryTextField.setValue(new Integer(mem));
    2
    currentMemoryTextField.setValue(new Integer(mem));
    Differences
    Expression1Expression2Difference
    totalMemoryTextFieldcurrentMemoryTextFieldVARIABLE_NAME_MISMATCH
    2
    currentMemoryTextField.setValue(new Integer(mem));
    3
    progressBar.setMaximum(mem);
    3
    progressBar.setMaximum(mem);
    3
    progressBar.setValue(mem);
    Differences
    Expression1Expression2Difference
    setMaximumsetValueMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression progressBar.setMaximum(mem) is a void method call, and thus it cannot be parameterized
    Expression progressBar.setValue(mem) is a void method call, and thus it cannot be parameterized
    3
    progressBar.setValue(mem);
    Precondition Violations (2)
    Row Violation
    1Expression progressBar.setMaximum(mem) is a void method call, and thus it cannot be parameterized
    2Expression progressBar.setValue(mem) is a void method call, and thus it cannot be parameterized