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/DataTypeDouble.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.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
	                  text = text.substring(0, text.length()-1);	// truncate string
2
	                  text = text.substring(0, text.length()-1);	// truncate string
3
	               }
3
	               }
4
	               else {
4
	               else {
5
	                  text = text.substring(0, index) + text.substring(index+1);
5
	                  text = text.substring(0, index) + text.substring(index+1);
6
	               }
6
	               }
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