if (s_log.isDebugEnabled()) { s_log.debug("Binding schema name "+dbo.getCatalogName()+ " as first bind value"); s_log.debug("Binding table name "+dbo.getSimpleName()+ " as second bind value"); s_log.debug("Binding table name "+dbo.getSimpleName()+ " as third bind value"); } pstmt.setString(1, dbo.getCatalogName()); pstmt.setString(2, dbo.getSimpleName()); pstmt.setString(3, dbo.getSimpleName());
if (s_log.isDebugEnabled()) { s_log.debug("Binding catalog name "+dbo.getCatalogName()+ " as first bind value"); s_log.debug("Binding table name "+dbo.getSimpleName()+ " as second bind value"); } pstmt.setString(1, dbo.getCatalogName()); pstmt.setString(2, dbo.getSimpleName());
Clone fragments detected by clone detection tool
File path: /sql12/plugins/sybase/src/net/sourceforge/squirrel_sql/plugins/SybaseASE/exp/SybaseTableIndexExtractorImpl.java File path: /sql12/plugins/sybase/src/net/sourceforge/squirrel_sql/plugins/SybaseASE/exp/SybaseTableTriggerExtractorImpl.java
Method name: void bindParamters(PreparedStatement, IDatabaseObjectInfo) Method name: void bindParamters(PreparedStatement, IDatabaseObjectInfo)
Number of AST nodes: 7 Number of AST nodes: 5
1
if (s_log.isDebugEnabled()) {
1
if (s_log.isDebugEnabled()) {
2
            s_log.debug("Binding schema name "+dbo.getCatalogName()+
2
            s_log.debug("Binding catalog name "+dbo.getCatalogName()+
3
                        " as first bind value");
3
                        " as first bind value");
4
            s_log.debug("Binding table name "+dbo.getSimpleName()+
4
            
5
                        " as second bind value");
6
            s_log.debug("Binding table name "+dbo.getSimpleName()+
5
            s_log.debug("Binding table name "+dbo.getSimpleName()+
7
                        " as third bind value");            
6
                        " as second bind value");
8
            
9
        }                        
7
        }        
10
        pstmt.setString(1, dbo.getCatalogName());
8
        pstmt.setString(1, dbo.getCatalogName());
11
        pstmt.setString(2, dbo.getSimpleName());
9
        pstmt.setString(2, dbo.getSimpleName());
12
        pstmt.setString(3, dbo.getSimpleName());
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.1
Clones locationClones are in different classes
Number of node comparisons18
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    if (s_log.isDebugEnabled())
    1
    if (s_log.isDebugEnabled())
    2
    s_log.debug("Binding schema name " + dbo.getCatalogName() + " as first bind value");
    2
    s_log.debug("Binding schema name " + dbo.getCatalogName() + " as first bind value");
    2
    s_log.debug("Binding catalog name " + dbo.getCatalogName() + " as first bind value");
    Differences
    Expression1Expression2Difference
    "Binding schema name ""Binding catalog name "LITERAL_VALUE_MISMATCH
    2
    s_log.debug("Binding catalog name " + dbo.getCatalogName() + " as first bind value");
    3
    s_log.debug("Binding table name " + dbo.getSimpleName() + " as second bind value");
    3
    s_log.debug("Binding table name " + dbo.getSimpleName() + " as second bind value");
    4
    s_log.debug("Binding table name " + dbo.getSimpleName() + " as third bind value");
    4
    s_log.debug("Binding table name " + dbo.getSimpleName() + " as third bind value");
    Preondition Violations
    Unmatched statement s_log.debug("Binding table name " + dbo.getSimpleName() + " as third bind value"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                              
    5
    pstmt.setString(1, dbo.getCatalogName());
    4
    pstmt.setString(1, dbo.getCatalogName());
    6
    pstmt.setString(2, dbo.getSimpleName());
    5
    pstmt.setString(2, dbo.getSimpleName());
    7
    pstmt.setString(3, dbo.getSimpleName());
                                                                                        
    Precondition Violations (2)
    Row Violation
    1Unmatched statement s_log.debug("Binding table name " + dbo.getSimpleName() + " as third bind value"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.SybaseASE.exp.SybaseTableIndexExtractorImpl and net.sourceforge.squirrel_sql.plugins.SybaseASE.exp.SybaseTableTriggerExtractorImpl do not have a common superclass