top.setLayout(new BorderLayout()); JLabel iconLabel = new JLabel(); iconLabel.setIcon(provider.getIcon());
top.setLayout(new BorderLayout()); JLabel iconLabel = new JLabel(); //iconLabel.setBackground(titleBackground); iconLabel.setIcon(p.getIcon());
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/context/ContextResultBox.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java
Method name: void ContextResultBox(IFrameMediator, IContextProvider, IContextSearchManager) Method name: void SearchResultBox(IFrameMediator, ISearchProvider, ISearchCriteria, IResultPanel)
Number of AST nodes: 3 Number of AST nodes: 3
1
top.setLayout(new BorderLayout());
1
top.setLayout(new BorderLayout());
2
		JLabel iconLabel = new JLabel();
2
		JLabel iconLabel = new JLabel();
3
		iconLabel.setIcon(provider
3
		//iconLabel.setBackground(titleBackground);
4
.getIcon());
4
		iconLabel.setIcon(p.getIcon());
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons5
  1. {Non-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
    28
    top.setLayout(new BorderLayout());
    33
    top.setLayout(new BorderLayout());
    29
    JLabel iconLabel = new JLabel();
    34
    JLabel iconLabel = new JLabel();
    30
    iconLabel.setIcon(provider.getIcon());
    30
    iconLabel.setIcon(provider.getIcon());
    35
    iconLabel.setIcon(p.getIcon());
    Differences
    Expression1Expression2Difference
    providerpVARIABLE_NAME_MISMATCH
    org.columba.core.context.api.IContextProviderorg.columba.core.search.api.ISearchProviderSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression provider cannot be unified with expression p , because common superclass org.columba.api.plugin.IExtensionInterface does not declare member(s) public abstract javax.swing.ImageIcon getIcon()
    35
    iconLabel.setIcon(p.getIcon());
    Precondition Violations (1)
    Row Violation
    1Expression provider cannot be unified with expression p , because common superclass org.columba.api.plugin.IExtensionInterface does not declare member(s) public abstract javax.swing.ImageIcon getIcon()