PlasticTheme[] computeThemes() { List themes = PlasticLookAndFeel.getInstalledThemes(); return (PlasticTheme[]) themes.toArray(new PlasticTheme[themes.size()]); } protected PlasticTheme getTheme(String name) { PlasticTheme[] themes = computeThemes(); for (int i = 0; i < themes.length; i++) { String str = themes[i].getName(); if (name.equals(str)) { return themes[i]; } } return null;
PlasticTheme[] computeThemes() { List themes = PlasticLookAndFeel.getInstalledThemes(); return (PlasticTheme[]) themes.toArray(new PlasticTheme[themes.size()]); } protected PlasticTheme getTheme(String name) { PlasticTheme[] themes = computeThemes(); for (int i = 0; i < themes.length; i++) { String str = themes[i].getName(); if (name.equals(str)) { return themes[i]; } } return null;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/themes/plugin/PlasticLookAndFeelPlugin.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/themes/plugin/PlasticLookAndFeelConfigPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
PlasticTheme[] computeThemes() {
1
PlasticTheme[] computeThemes() {
2
		List themes = PlasticLookAndFeel.getInstalledThemes();
2
        List themes = PlasticLookAndFeel.getInstalledThemes();
3
		return (PlasticTheme[]) themes.toArray(new PlasticTheme[themes.size()]);
3
        return (PlasticTheme[]) themes.toArray(new PlasticTheme[themes.size()]);
4
	}
5
	
4
    }
6
protected PlasticTheme getTheme(String name) {
5
    protected PlasticTheme getTheme(String name) {
7
		PlasticTheme[] themes = computeThemes();
6
        PlasticTheme[] themes = computeThemes();
8
		for (int i = 0; i < themes.length; i++) {
7
        for (int i = 0; i < themes.length; i++) {
9
			String str = themes[i].getName();
8
            String str = themes[i].getName();
10
			if (name.equals(str)) {
9
            if (name.equals(str)) {
11
				return themes[i];
10
                return themes[i];
12
			}
13
		}
14
		
11
            }
12
        }
15
return null;
13
        return null;
16
	
14
    
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