if (index == text.length() - 1) { text = text.substring(0, text.length() - 1); // truncate string } else { text = text.substring(0, index) + text.substring(index + 1); }
if (index == text.length() -1) { text = text.substring(0, text.length()-1); // truncate string } else { text = text.substring(0, index) + text.substring(index+1); }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (index == text.length() - 1)
1
if (index == text.length() -1) {
2
					{
2
	
3
						text = text.substring(0, text.length() - 1); // truncate string
3
						text = text.substring(0, text.length()-1);	// truncate string
4
					}
4
						}
5
					else
5
						else
6
					{
6
 {
7
						text = text.substring(0, index) + text.substring(index + 1);
7
							text = text.substring(0, index) + text.substring(index+1);
8
					}
8
						}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0