try { fileButton.setIcon(new ImageIcon(new URL( fileIcon))); } catch(MalformedURLException mf) { Log.log(Log.ERROR,this,mf); } fileButton.setText(MiscUtilities.getFileName(fileIcon));
try { fileButton.setIcon(new ImageIcon(new URL( fileIcon))); } catch(MalformedURLException mf) { Log.log(Log.ERROR,this,mf); } fileButton.setText(MiscUtilities.getFileName(fileIcon));
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java
Method name: void ToolBarEditDialog(Component, DefaultComboBoxModel, ToolBarOptionPane.Button) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
try
1
try
2
					{
2
				{
3
						fileButton.setIcon(new ImageIcon(new URL(
3
					fileButton.setIcon(new ImageIcon(new URL(
4
							fileIcon)));
4
						fileIcon)));
5
					}
5
				}
6
					catch(MalformedURLException mf)
6
				catch(MalformedURLException mf)
7
					{
7
				{
8
						Log.log(Log.ERROR,this,mf);
8
					Log.log(Log.ERROR,this,mf);
9
					}
9
				}
10
					fileButton.setText(MiscUtilities.getFileName(fileIcon));
10
				fileButton.setText(MiscUtilities.getFileName(fileIcon));
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.3
Clones locationClones are in the same java file
Number of node comparisons6
  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.7
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    86
    try
    19
    try
    87
    fileButton.setIcon(new ImageIcon(new URL(fileIcon)));
    20
    fileButton.setIcon(new ImageIcon(new URL(fileIcon)));
    88
    fileButton.setText(MiscUtilities.getFileName(fileIcon));
    21
    fileButton.setText(MiscUtilities.getFileName(fileIcon));
    Precondition Violations (0)
    Row Violation