if (_infos == null || _infos.length <= 0) { return 0; } return _infos[arg0].isNullAllowed();
if (_infos == null || _infos.length <= 0) { return null; } return _infos[0].getCatalogName();
Clone fragments detected by clone detection tool
File path: /sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java File path: /sql12/test/mockobjects/net/sourceforge/squirrel_sql/mo/sql/MockResultSetMetaData.java
Method name: int isNullable(int) Method name: String getCatalogName(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (_infos == null || _infos.length <= 0) {
1
if (_infos == null || _infos.length <= 0) {
2
			return 0;
2
			return null;
3
		}
3
		}
4
		return _infos[arg0].isNullAllowed();
4
		return _infos[0].getCatalogName();
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.2
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (_infos == null || _infos.length <= 0)
    1
    if (_infos == null || _infos.length <= 0)
                                  
    2
    return null;
    Preondition Violations
    Unmatched return null;
    2
    return null;
    2
    return 0;
    2
    return 0;
    Preondition Violations
    Unmatched return 0;
                            
                                                                              
    3
    return _infos[0].getCatalogName();
    Preondition Violations
    Unmatched return _infos[0].getCatalogName();
    3
    return _infos[0].getCatalogName();
    3
    return _infos[arg0].isNullAllowed();
    3
    return _infos[arg0].isNullAllowed();
    Preondition Violations
    Unmatched return _infos[arg0].isNullAllowed();
                                                                                  
    Precondition Violations (5)
    Row Violation
    1Unmatched return null;
    2Unmatched return 0;
    3Unmatched return _infos[0].getCatalogName();
    4Unmatched return _infos[arg0].isNullAllowed();
    5The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero