if (s_log.isDebugEnabled()) { s_log.debug("objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide " + "special handling for newly opened interal SQL frames"); }
if (result != columnType) { if (s_log.isDebugEnabled()) { s_log.debug("Converting type code for column "+columnName+ ". Original column type code and name were Types.NULL and "+columnTypeName+ "; New type code is "+JDBCTypeMapper.getJdbcTypeName(result)); } }
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/plugin/PluginSessionCallbackAdaptor.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/ResultSetDataSet.java
Method name: void sqlInternalFrameOpened(SQLInternalFrame, ISession) Method name: int fixColumnType(String, int, String)
Number of AST nodes: 2 Number of AST nodes: 3
1
if (result != columnType) {
1
if (s_log.isDebugEnabled())
2
			if (s_log.isDebugEnabled()) {
2
		{
3
		
3
			s_log.debug("objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide "
4
		s_log.debug("
4
				+ "special handling for newly opened interal SQL frames");
5
	
5
Converting type code for column "+columnName+
6
					". Original column type code and name were Types.NULL and "+columnTypeName+
7
					"; New type code is "+JDBCTypeMapper.getJdbcTypeName(result));
8
			}   		
6
	}
9
   	}
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 comparisons4
  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)857.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (s_log.isDebugEnabled())
    7
    if (s_log.isDebugEnabled())
    2
    s_log.debug("objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide " + "special handling for newly opened interal SQL frames");
    2
    s_log.debug("objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide " + "special handling for newly opened interal SQL frames");
    8
    s_log.debug("Converting type code for column " + columnName + ". Original column type code and name were Types.NULL and " + columnTypeName + "; New type code is " + JDBCTypeMapper.getJdbcTypeName(result));
    Differences
    Expression1Expression2Difference
    "objectTreeInternalFrameOpened: ""Converting type code for column "LITERAL_VALUE_MISMATCH
    _plugin.getDescriptiveName()columnNameTYPE_COMPATIBLE_REPLACEMENT
    "objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide "+ "special handling for newly opened interal SQL frames""Converting type code for column " + columnName + ". Original column type code and name were Types.NULL and "+ columnTypeName+ "; New type code is "+ JDBCTypeMapper.getJdbcTypeName(result)INFIX_EXTENDED_OPERAND_NUMBER_MISMATCH
    Preondition Violations
    Expression _plugin.getDescriptiveName() is a method call throwing exception(s) that should be caught by a try block that will be extracted
    Expression "objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide "+ "special handling for newly opened interal SQL frames" is a method call throwing exception(s) that should be caught by a try block that will be extracted
    8
    s_log.debug("Converting type code for column " + columnName + ". Original column type code and name were Types.NULL and " + columnTypeName + "; New type code is " + JDBCTypeMapper.getJdbcTypeName(result));
    Precondition Violations (3)
    Row Violation
    1Expression _plugin.getDescriptiveName() is a method call throwing exception(s) that should be caught by a try block that will be extracted
    2Expression "objectTreeInternalFrameOpened: " + _plugin.getDescriptiveName() + " doesn't provide "+ "special handling for newly opened interal SQL frames" is a method call throwing exception(s) that should be caught by a try block that will be extracted
    3The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.plugin.PluginSessionCallbackAdaptor and net.sourceforge.squirrel_sql.fw.datasetviewer.ResultSetDataSet do not have a common superclass