Project

General

Profile

Revision 8a81795d

ID8a81795d7251da9e47239d395600c0bb8d98763c
Parent d01b74ef
Child a7e57e62

Added by Andreas Müller over 2 years ago

cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImpl.java
1601 1601
        if (query != null){
1602 1602
            @SuppressWarnings("unchecked")
1603 1603
            List<Object> resultArray = query.list();
1604
            @SuppressWarnings("rawtypes")
1605 1604
            List<UuidAndTitleCache<Taxon>> returnResult = new ArrayList<>() ;
1606 1605
            Object[] result;
1607 1606
            for(int i = 0; i<resultArray.size();i++){
1608 1607
            	result = (Object[]) resultArray.get(i);
1609
            	returnResult.add(new UuidAndTitleCache(Taxon.class, (UUID) result[0],(Integer)result[1], (String)result[2], new Boolean(result[4].toString()), null));
1608
            	returnResult.add(new UuidAndTitleCache<Taxon>(Taxon.class, (UUID) result[0],(Integer)result[1], (String)result[2], new Boolean(result[4].toString()), null));
1610 1609
            }
1611 1610
            return returnResult;
1612 1611
        }else{
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacade.java
1737 1737
	public List<Media> getFieldObjectMedia() {
1738 1738
		try {
1739 1739
			List<Media> result = getMediaList(getFieldUnit(false), false);
1740
			return result == null ? new ArrayList<Media>() : result;
1740
			return result == null ? new ArrayList<>() : result;
1741 1741
		} catch (DerivedUnitFacadeNotSupportedException e) {
1742 1742
			throw new IllegalStateException(notSupportMessage, e);
1743 1743
		}
......
2090 2090
		}
2091 2091
		try {
2092 2092
			List<Media> result = getMediaList(derivedUnit, false);
2093
			return result == null ? new ArrayList<Media>() : result;
2093
			return result == null ? new ArrayList<>() : result;
2094 2094
		} catch (DerivedUnitFacadeNotSupportedException e) {
2095 2095
			throw new IllegalStateException(notSupportMessage, e);
2096 2096
		}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)