Project

General

Profile

Revision e225119e

IDe225119e901db1af471b37b97e57552657d12be2
Parent 9aa59538
Child a05f423c

Added by Andreas Müller about 3 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/EnumComboElement.java
33 33
/**
34 34
 * @author n.hoffmann
35 35
 * @created Mar 16, 2010
36
 * @version 1.0
37 36
 */
38 37
public class EnumComboElement<T extends IEnumTerm<T>> extends
39 38
		AbstractComboElement<T>  {
......
44 43
	}
45 44

  
46 45

  
47
	private static CdmEnumDataHolder[] cdmEnumDataHolders = {
46
	 private  static  CdmEnumDataHolder[] cdmEnumDataHolders = {
48 47
		new CdmEnumDataHolder<NomenclaturalCode>(){
49 48

  
50 49
			@Override
......
54 53

  
55 54
			@Override
56 55
			public Collection<NomenclaturalCode> getElements() {
57
				NomenclaturalCode[] codes = NomenclaturalCode.values();
58
				
59
				Collection<NomenclaturalCode> result = new ArrayList<NomenclaturalCode>(Arrays.asList(NomenclaturalCode.values()));
56
				Collection<NomenclaturalCode> result = new ArrayList<>(Arrays.asList(NomenclaturalCode.values()));
60 57
            	result.remove(NomenclaturalCode.ICVCN);
61 58
                return  result;
62 59
				
......
125 122

  
126 123
	};
127 124

  
128
	protected List<T> elementTypeList = new ArrayList<T>();
125
	protected List<T> elementTypeList = new ArrayList<>();
129 126

  
130 127
	private final Class<T> enumType;
131 128

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)