logDebug("setProgress: value=", value); GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { progressMonitor.setProgress(value); } });
logDebug("setNote: value=", note); GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { progressMonitor.setNote(note); } });
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/DownloadStatusEventHandler.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/DownloadStatusEventHandler.java
Method name: void setProgress(int) Method name: void setNote(String)
Number of AST nodes: 2 Number of AST nodes: 2
1
logDebug("setProgress: value=", value);
1
logDebug("setNote: value=", note);
2
		GUIUtils.processOnSwingEventThread(new Runnable()
2
		GUIUtils.processOnSwingEventThread(new Runnable()
3
		{
3
		{
4
			public void run()
4
			public void run()
5
			{
5
			{
6
				progressMonitor.setProgress(value);
6
				progressMonitor.setNote(note);
7
			}
7
			}
8
		});
8
		});
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.0
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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    logDebug("setProgress: value=", value);
    1
    logDebug("setProgress: value=", value);
    1
    logDebug("setNote: value=", note);
    Differences
    Expression1Expression2Difference
    "setProgress: value=""setNote: value="LITERAL_VALUE_MISMATCH
    valuenoteVARIABLE_NAME_MISMATCH
    intjava.lang.StringVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type int of variable value does not match with type java.lang.String of variable note
    1
    logDebug("setNote: value=", note);
    2
    GUIUtils.processOnSwingEventThread(new Runnable() {...});
    2
    GUIUtils.processOnSwingEventThread(new Runnable() {...});
    2
    GUIUtils.processOnSwingEventThread(new Runnable() {...});
    Differences
    Expression1Expression2Difference
    valuenoteVARIABLE_NAME_MISMATCH
    intjava.lang.StringVARIABLE_TYPE_MISMATCH
    setProgresssetNoteMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Type int of variable value does not match with type java.lang.String of variable note
    Expression progressMonitor.setProgress(value) is a void method call, and thus it cannot be parameterized
    Expression progressMonitor.setNote(note) is a void method call, and thus it cannot be parameterized
    2
    GUIUtils.processOnSwingEventThread(new Runnable() {...});
    Precondition Violations (4)
    Row Violation
    1Type int of variable value does not match with type java.lang.String of variable note
    2Type int of variable value does not match with type java.lang.String of variable note
    3Expression progressMonitor.setProgress(value) is a void method call, and thus it cannot be parameterized
    4Expression progressMonitor.setNote(note) is a void method call, and thus it cannot be parameterized