JScrollPane scroller = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); getContentPane().add(scroller, BorderLayout.CENTER); GUIUtilities.requestFocus(this,list); pack();
JScrollPane scroller = new JScrollPane(words, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); getContentPane().add(scroller, BorderLayout.CENTER); GUIUtilities.requestFocus(this,words); pack();
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ActionBar.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CompleteWord.java
Method name: void CompletionPopup(String[]) Method name: void CompleteWord(View, String, Completion[], Point, String)
Number of AST nodes: 4 Number of AST nodes: 4
1
JScrollPane scroller = new JScrollPane(list,
1
JScrollPane scroller = new JScrollPane(words,
2
				JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
2
			JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
3
				JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
3
			JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
4
			getContentPane().add(scroller, BorderLayout.CENTER);
4
		getContentPane().add(scroller, BorderLayout.CENTER);
5
			GUIUtilities.requestFocus(this,list);
5
		GUIUtilities.requestFocus(this,words);
6
			pack();
6
		pack();
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 different classes having the same super class
Number of node comparisons10
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    8
    JScrollPane scroller = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    8
    JScrollPane scroller = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    14
    JScrollPane scroller = new JScrollPane(words, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    Differences
    Expression1Expression2Difference
    listwordsVARIABLE_NAME_MISMATCH
    org.gjt.sp.jedit.gui.ActionBar.CompletionPopup.CompletionListjavax.swing.JListSUBCLASS_TYPE_MISMATCH
    14
    JScrollPane scroller = new JScrollPane(words, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    9
    getContentPane().add(scroller, BorderLayout.CENTER);
    15
    getContentPane().add(scroller, BorderLayout.CENTER);
    10
    GUIUtilities.requestFocus(this, list);
    10
    GUIUtilities.requestFocus(this, list);
    16
    GUIUtilities.requestFocus(this, words);
    Differences
    Expression1Expression2Difference
    listwordsVARIABLE_NAME_MISMATCH
    org.gjt.sp.jedit.gui.ActionBar.CompletionPopup.CompletionListjavax.swing.JListSUBCLASS_TYPE_MISMATCH
    16
    GUIUtilities.requestFocus(this, words);
    11
    pack();
    17
    pack();
    Precondition Violations (0)
    Row Violation