try { loadAbbrevs(new InputStreamReader( new FileInputStream(file),ENCODING)); loaded = true; } catch(FileNotFoundException fnf) { } catch(Exception e) { Log.log(Log.ERROR,Abbrevs.class,"Error while loading " + file); Log.log(Log.ERROR,Abbrevs.class,e); }
try { URL url = new URL(defaultIconPath + iconName); icon = new ImageIcon(url); } catch(Exception ex) { Log.log(Log.ERROR,GUIUtilities.class, "Icon not found: " + iconName); Log.log(Log.ERROR,GUIUtilities.class,ex); return null; }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/Abbrevs.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/GUIUtilities.java
Method name: void load() Method name: Icon loadIcon(String)
Number of AST nodes: 3 Number of AST nodes: 3
1
try
1
try
2
			{
2
				{
3
				loadAbbrevs(new InputStreamReader(
3
				
4
					new FileInputStream(file),ENCODING));
5
				loaded = true;
6
			}
7
			catch(FileNotFoundException fnf)
8
			{
4
	URL url = new URL(defaultIconPath + iconName);
5
					icon = new ImageIcon(url);
9
			}
6
				}
10
			catch(Exception e)
7
				catch(Exception ex)
11
			{
8
				{
12
				Log.log(Log.ERROR,Abbrevs.class,"Error while loading " + fil
9
					Log.log(Log.ERROR,GUIUtilities.class,
13
e);
10
						"Icon not found: " + iconName);
14
				Log.log(Log.ERROR,Abbrevs.class,e);
11
					Log.log(Log.ERROR,GUIUtilities.class,ex);
15
			
12
					return null;
16
}
13
				}
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
Number of node comparisons0
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    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 typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation