Revision f33355c3
Added by Andreas Müller over 3 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/Rank.java | ||
---|---|---|
22 | 22 |
import javax.xml.bind.annotation.XmlAttribute; |
23 | 23 |
import javax.xml.bind.annotation.XmlType; |
24 | 24 |
|
25 |
import org.apache.commons.lang.StringUtils; |
|
26 | 25 |
import org.apache.log4j.Logger; |
27 | 26 |
import org.hibernate.annotations.Type; |
28 | 27 |
import org.hibernate.envers.Audited; |
... | ... | |
675 | 674 |
if (idInVoc == null){ |
676 | 675 |
throw new NullPointerException("idInVoc is NULL in getRankByIdInVoc"); |
677 | 676 |
} |
678 |
if (StringUtils.isBlank(idInVoc)){
|
|
677 |
if (isBlank(idInVoc)){ |
|
679 | 678 |
//handle empty idInVoc as unknown |
680 | 679 |
idInVoc = "oijas34\u0155"; |
681 | 680 |
} |
... | ... | |
1029 | 1028 |
} |
1030 | 1029 |
labelMap.put(label.toLowerCase(), rank.getUuid()); |
1031 | 1030 |
//add to map |
1032 |
if (StringUtils.isBlank(abbrevLabel)){
|
|
1031 |
if (isBlank(abbrevLabel)){ |
|
1033 | 1032 |
if (logger.isDebugEnabled()){logger.info("Abbreviated label for rank is NULL or empty.Can't add rank to abbrevLabel map: " + CdmUtils.Nz(rank.getLabel()));} |
1034 | 1033 |
}else{ |
1035 | 1034 |
idInVocMap.put(abbrevLabel, rank.getUuid()); |
Also available in: Unified diff
ref #9204 remove commons-lang2 from cdmlib dependencies