if (frame.isIcon())
{
try
{
frame.setIcon(false);
} catch (PropertyVetoException ignore)
{
// Ignore.
}
}
else if (frame.isMaximum())
{
try
{
frame.setMaximum(false);
}
catch (PropertyVetoException ignore)
if (child.isIcon())
{
try
{
child.setIcon(false);
}
catch (PropertyVetoException ignore)
{
// Ignore.
}
}
else if (child.isMaximum())
{
try
{
child.setMaximum(false);
}
catch (PropertyVetoException ignore)
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/TileInternalFramesAction.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/CascadeInternalFramePositioner.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (frame.isIcon())↵ | | 1 | if (child.isIcon())↵
|
2 | {↵ | | 2 | {↵
|
3 | try↵ | | 3 | try↵
|
4 | {↵ | | 4 | {↵
|
5 | frame.setIcon(false);↵ | | 5 | child.setIcon(false);↵
|
6 | ↵ | | 6 | }↵
|
7 | } catch (PropertyVetoException ignore)↵ | | 7 | catch (PropertyVetoException ignore)↵
|
8 | {↵ | | 8 | ↵
|
9 | ↵ | | 9 | {↵
|
10 | // Ignore.↵ | | 10 | // Ignore.↵
|
11 | }↵ | | 11 | ↵
|
12 | }↵ | | |
|
13 | ↵ | | 12 | }↵
|
| | | 13 | }↵
|
14 | else if (frame.isMaximum())↵ | | 14 | else if (child.isMaximum())↵
|
15 | {↵ | | 15 | {↵
|
16 | try↵ | | 16 | try↵
|
17 | {↵ | | 17 | {↵
|
18 | frame.setMaximum(false);↵ | | 18 | child.setMaximum(false);↵
|
19 | }↵ | | 19 | ↵
|
20 | ↵ | | 20 | }↵
|
21 | catch (PropertyVetoException ignore)↵ | | 21 | catch (PropertyVetoException ignore)↵
|
22 | | | 22 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |