Revision f33355c3
Added by Andreas Müller over 3 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/term/TermDefaultCacheStrategy.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
import java.util.UUID; |
12 | 12 |
|
13 |
import org.apache.commons.lang.StringUtils; |
|
14 | 13 |
import org.apache.log4j.Logger; |
15 | 14 |
|
16 | 15 |
import eu.etaxonomy.cdm.model.common.Language; |
... | ... | |
48 | 47 |
} |
49 | 48 |
//return label, or if not exists abbreviated label, of if not exists description |
50 | 49 |
result = representation.getLabel(); |
51 |
if (StringUtils.isBlank(result)){
|
|
50 |
if (isBlank(result)){ |
|
52 | 51 |
result = representation.getAbbreviatedLabel(); |
53 | 52 |
} |
54 |
if (StringUtils.isBlank(result)){
|
|
53 |
if (isBlank(result)){ |
|
55 | 54 |
result = representation.getText(); |
56 | 55 |
representation.getDescription(); |
57 | 56 |
} |
58 | 57 |
} |
59 | 58 |
//if still empty return toString |
60 |
if (StringUtils.isBlank(result)){
|
|
59 |
if (isBlank(result)){ |
|
61 | 60 |
result = term.getClass().getSimpleName() + "<" + term.getUuid() + ">"; |
62 | 61 |
} |
63 | 62 |
return result; |
Also available in: Unified diff
ref #9204 remove commons-lang2 from cdmlib dependencies