if (!(src instanceof JTabbedPane))
{
StringBuilder buf = new StringBuilder();
buf.append("Source object in TabbedPaneListener was not a JTabbedpane")
.append(" - it was ")
.append(src == null ? "null" : src.getClass().getName());
s_log.error(buf.toString());
return;
}
if (!(prop instanceof ObjectTreeTabbedPane))
{
StringBuilder buf = new StringBuilder();
buf.append("Client property in JTabbedPane was not an ObjectTreeTabbedPane")
.append(" - it was ")
.append(prop == null ? "null" : prop.getClass().getName());
s_log.error(buf.toString());
return;
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/ObjectTreePanel.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (!(src instanceof JTabbedPane))↵ | | 1 | if (!(prop instanceof ObjectTreeTabbedPane))↵
|
2 | {↵ | | 2 | {↵
|
3 | StringBuilder buf = new StringBuilder();↵ | | 3 | StringBuilder buf = new StringBuilder();↵
|
4 | buf.append("Source object in TabbedPaneListener was not a JTabbedpane")↵ | | 4 | buf.append("Client property in JTabbedPane was not an ObjectTreeTabbedPane")↵
|
5 | .append(" - it was ")↵ | | 5 | .append(" - it was ")↵
|
6 | .append(src == null ? "null" : src.getClass().getName());↵ | | 6 | .append(prop == null ? "null" : prop.getClass().getName());↵
|
7 | s_log.error(buf.toString());↵ | | 7 | s_log.error(buf.toString());↵
|
8 | return;↵ | | 8 | return;↵
|
9 | } | | 9 | }
|
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 |