public static ImageIcon loadIcon(String imageIconName) { URL imgURL = FirebirdManagerPlugin.class.getResource("images/" + imageIconName); if (imgURL != null) { return new ImageIcon(imgURL); } else { log.error("Couldn't find file: images/" + imageIconName); return null;
public static ImageIcon loadIcon(String imageIconName) { URL imgURL = SmarttoolsPlugin.class.getResource("images/" + imageIconName); if (imgURL != null) { return new ImageIcon(imgURL); } else { log.error("Couldn't find file: images/" + imageIconName); return null;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/FirebirdManagerHelper.java File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsHelper.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static ImageIcon loadIcon(String imageIconName) {
1
public static ImageIcon loadIcon(String imageIconName)
2
        
2
	{
3
URL imgURL = FirebirdManagerPlugin.class.getResource("images/" + imageIconName);
3
		URL imgURL = SmarttoolsPlugin.class.getResource("images/" + imageIconName);
4
        if (imgURL != null) {
4
		if (imgURL != null)
5
            
5
		{
6
return new ImageIcon(imgURL);
6
			return new ImageIcon(imgURL);
7
        } else {
8
            
7
		}
8
		else
9
		{
9
log.error("Couldn't find file: images/" + imageIconName);
10
			log.error("Couldn't find file: images/" + imageIconName);
10
            return null;
11
			return null;
11
        
12
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0