DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.faq"), file); root.add(dn); _nodes.put(dn.getURL().toString(), dn);
DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.squirrel"), file); licenceRoot.add(dn); _nodes.put(dn.getURL().toString(), dn);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/HelpViewerWindow.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/HelpViewerWindow.java
Method name: JScrollPane createContentsTree() Method name: JScrollPane createContentsTree()
Number of AST nodes: 3 Number of AST nodes: 3
1
DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.faq"), file);
1
DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.squirrel"), file);
2
			root.add(dn);
2
			licenceRoot.add(dn);
3
			_nodes.put(dn.getURL().toString(), dn);
3
			_nodes.put(dn.getURL().toString(), dn);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    67
    DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.faq"), file);
    67
    DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.faq"), file);
    34
    DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.squirrel"), file);
    Differences
    Expression1Expression2Difference
    "HelpViewerWindow.faq""HelpViewerWindow.squirrel"LITERAL_VALUE_MISMATCH
    34
    DocumentNode dn = new DocumentNode(s_stringMgr.getString("HelpViewerWindow.squirrel"), file);
    68
    root.add(dn);
    68
    root.add(dn);
    35
    licenceRoot.add(dn);
    Differences
    Expression1Expression2Difference
    rootlicenceRootVARIABLE_NAME_MISMATCH
    35
    licenceRoot.add(dn);
    69
    _nodes.put(dn.getURL().toString(), dn);
    36
    _nodes.put(dn.getURL().toString(), dn);
    Precondition Violations (0)
    Row Violation