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