if(!Character.isDigit(char1[_i])) { //_i--; break; }
if(!Character.isDigit(char2[_j])) { //_j--; break; }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/MiscUtilities.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/MiscUtilities.java
Method name: int compareStrings(String, String, boolean) Method name: int compareStrings(String, String, boolean)
Number of AST nodes: 2 Number of AST nodes: 2
1
if(!Character.isDigit(char1[_i]))
1
if(!Character.isDigit(char2[_j]))
2
					{
2
					{
3
						//_i--;
3
						//_j--;
4
						break;
4
						break;
5
					}
5
					}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.4
Clones locationClones are in the same method
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.2
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    11
    if (!Character.isDigit(char1[_i]))
    11
    if (!Character.isDigit(char1[_i]))
    14
    if (!Character.isDigit(char2[_j]))
    Differences
    Expression1Expression2Difference
    char1char2VARIABLE_NAME_MISMATCH
    _i_jVARIABLE_NAME_MISMATCH
    14
    if (!Character.isDigit(char2[_j]))
    12
    break;
    12
    break;
    15
    break;
    Preondition Violations
    Statement break; without innermost loop
    Statement break; without innermost loop
    15
    break;
    Precondition Violations (2)
    Row Violation
    1Statement break; without innermost loop
    2Statement break; without innermost loop