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; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
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 = "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; |
Row | Violation |
---|---|
1 | 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 |
2 | 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 |
3 | 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 |
4 | 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 |