try { _callback.wait(); } catch (InterruptedException ignore) { // Ignore }
try { child.setMaximum(false); } catch (PropertyVetoException ignore) { // Ignore. }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/TaskExecuter.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/CascadeInternalFramePositioner.java
Method name: void run() Method name: void positionInternalFrame(JInternalFrame)
Number of AST nodes: 2 Number of AST nodes: 2
1
try
1
try
2
						{
2
				
3
							_callback.wait(
3
{
4
);
4
					child.setMaximum(false);
5
						}
5
				}
6
						catch (InterruptedException ignore)
6
				catch (PropertyVetoException ignore)
7
						{
7
				{
8
							// Ignore
8
					// Ignore.
9
						}
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 statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    10
    try
    10
    try
    18
    try
    Differences
    Expression1Expression2Difference
    java.lang.InterruptedExceptionjava.beans.PropertyVetoExceptionSUBCLASS_TYPE_MISMATCH
    java.lang.InterruptedExceptionjava.beans.PropertyVetoExceptionSUBCLASS_TYPE_MISMATCH
    18
    try
    11
    _callback.wait();
    11
    _callback.wait();
    Preondition Violations
    Unmatched statement _callback.wait(); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
                                              
                                                            
    19
    child.setMaximum(false);
    Preondition Violations
    Unmatched statement child.setMaximum(false); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    19
    child.setMaximum(false);
    Precondition Violations (3)
    Row Violation
    1Unmatched statement _callback.wait(); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    2Unmatched statement child.setMaximum(false); cannot be moved before or after the extracted code, because it throws 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.fw.util.TaskExecuter and net.sourceforge.squirrel_sql.fw.gui.CascadeInternalFramePositioner do not have a common superclass