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/DataTypeDouble.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
					{
3
						
2
 {
4
text = text.substring(0, text.length() - 1); // truncate string
3
	                  text = text.substring(0, text.length()-1);	// truncate string
5
					}
4
	
6
					else
7
					{
8
						
5
               }
6
	               else {
9
text = text.substring(0, index) + text.substring(index + 1);
7
	                  text = text.substring(0, index) + text.substring(index+1);
10
					}
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