final String TAB = " "; String retValue = ""; retValue = "DownloadStatusEvent ( " + super.toString() + TAB + "_type = " + this._type + TAB + "_filename = " + this._filename + TAB + "_fileCountTotal = " + this._fileCountTotal + TAB + "_exception = " + this._exception + TAB + " )"; return retValue;
final String TAB = " "; String retValue = ""; retValue = "ArtifactStatus ( " + super.toString() + TAB + "name = " + this.name + TAB + "type = " + this.type + TAB + "installed = " + this.installed + TAB + "displayType = " + this.displayType + TAB + "artifactAction = " + this.artifactAction + TAB + " )"; return retValue;
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/downloader/event/DownloadStatusEvent.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/gui/ArtifactStatus.java
Method name: String toString() Method name: String toString()
Number of AST nodes: 4 Number of AST nodes: 4
1
final String TAB = "    ";
1
final String TAB = "    ";
2
		
2
	     
3
String retValue = "";
3
	     String retValue = "";
4
		
4
	     
5
retValue = "DownloadStatusEvent ( "
5
	     retValue = "ArtifactStatus ( "
6
         + super.toString() + TAB
6
	         + super.toString() + TAB
7
         + "_
7
	         + "name = " + this.name + TAB
8
type = " + this._type + TAB
8
	         + "type = " + this.type + TAB
9
         + "_filename = " + this._filename + TAB
9
	         + "installed = " + this.installed + TAB
10
         + "_fileCountTotal = " + this._fileCountTotal + TAB
10
	         + "displayType = " + this.displayType + TAB
11
         + "_exception = " + this._exception + TAB
11
	         + "artifactAction = " + this.artifactAction + TAB
12
         + " )";
12
	         + " )";
13
		
13
	 
14
return retValue;
14
	     return retValue;
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 in different classes
Number of node comparisons16
  1. {Non-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
    1
    final String TAB = "    ";
    1
    final String TAB = "    ";
    2
    String retValue = "";
    2
    String retValue = "";
    3
    retValue = "DownloadStatusEvent ( " + super.toString() + TAB + "_type = " + this._type + TAB + "_filename = " + this._filename + TAB + "_fileCountTotal = " + this._fileCountTotal + TAB + "_exception = " + this._exception + TAB + " )";
    3
    retValue = "DownloadStatusEvent ( " + super.toString() + TAB + "_type = " + this._type + TAB + "_filename = " + this._filename + TAB + "_fileCountTotal = " + this._fileCountTotal + TAB + "_exception = " + this._exception + TAB + " )";
    3
    retValue = "ArtifactStatus ( " + super.toString() + TAB + "name = " + this.name + TAB + "type = " + this.type + TAB + "installed = " + this.installed + TAB + "displayType = " + this.displayType + TAB + "artifactAction = " + this.artifactAction + TAB + " )";
    Differences
    Expression1Expression2Difference
    "DownloadStatusEvent ( ""ArtifactStatus ( "LITERAL_VALUE_MISMATCH
    "DownloadStatusEvent ( " + super.toString() + TAB+ "_type = "+ this._type+ TAB+ "_filename = "+ this._filename+ TAB+ "_fileCountTotal = "+ this._fileCountTotal+ TAB+ "_exception = "+ this._exception+ TAB+ " )""ArtifactStatus ( " + super.toString() + TAB+ "name = "+ this.name+ TAB+ "type = "+ this.type+ TAB+ "installed = "+ this.installed+ TAB+ "displayType = "+ this.displayType+ TAB+ "artifactAction = "+ this.artifactAction+ TAB+ " )"INFIX_EXTENDED_OPERAND_NUMBER_MISMATCH
    Preondition Violations
    Expression "DownloadStatusEvent ( " + super.toString() + TAB+ "_type = "+ this._type+ TAB+ "_filename = "+ this._filename+ TAB+ "_fileCountTotal = "+ this._fileCountTotal+ TAB+ "_exception = "+ this._exception+ TAB+ " )" cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression "ArtifactStatus ( " + super.toString() + TAB+ "name = "+ this.name+ TAB+ "type = "+ this.type+ TAB+ "installed = "+ this.installed+ TAB+ "displayType = "+ this.displayType+ TAB+ "artifactAction = "+ this.artifactAction+ TAB+ " )" cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Super method call retValue="DownloadStatusEvent ( " + super.toString() + TAB+ "_type = "+ this._type+ TAB+ "_filename = "+ this._filename+ TAB+ "_fileCountTotal = "+ this._fileCountTotal+ TAB+ "_exception = "+ this._exception+ TAB+ " )"; cannot be extracted from method
    Super method call retValue="ArtifactStatus ( " + super.toString() + TAB+ "name = "+ this.name+ TAB+ "type = "+ this.type+ TAB+ "installed = "+ this.installed+ TAB+ "displayType = "+ this.displayType+ TAB+ "artifactAction = "+ this.artifactAction+ TAB+ " )"; cannot be extracted from method
    3
    retValue = "ArtifactStatus ( " + super.toString() + TAB + "name = " + this.name + TAB + "type = " + this.type + TAB + "installed = " + this.installed + TAB + "displayType = " + this.displayType + TAB + "artifactAction = " + this.artifactAction + TAB + " )";
    4
    return retValue;
    4
    return retValue;
    Precondition Violations (4)
    Row Violation
    1Expression "DownloadStatusEvent ( " + super.toString() + TAB+ "_type = "+ this._type+ TAB+ "_filename = "+ this._filename+ TAB+ "_fileCountTotal = "+ this._fileCountTotal+ TAB+ "_exception = "+ this._exception+ TAB+ " )" cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression "ArtifactStatus ( " + super.toString() + TAB+ "name = "+ this.name+ TAB+ "type = "+ this.type+ TAB+ "installed = "+ this.installed+ TAB+ "displayType = "+ this.displayType+ TAB+ "artifactAction = "+ this.artifactAction+ TAB+ " )" cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Super method call retValue="DownloadStatusEvent ( " + super.toString() + TAB+ "_type = "+ this._type+ TAB+ "_filename = "+ this._filename+ TAB+ "_fileCountTotal = "+ this._fileCountTotal+ TAB+ "_exception = "+ this._exception+ TAB+ " )"; cannot be extracted from method
    4Super method call retValue="ArtifactStatus ( " + super.toString() + TAB+ "name = "+ this.name+ TAB+ "type = "+ this.type+ TAB+ "installed = "+ this.installed+ TAB+ "displayType = "+ this.displayType+ TAB+ "artifactAction = "+ this.artifactAction+ TAB+ " )"; cannot be extracted from method