Revision f33355c3
Added by Andreas Müller over 3 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Credit.java | ||
---|---|---|
19 | 19 |
import javax.xml.bind.annotation.XmlSchemaType; |
20 | 20 |
import javax.xml.bind.annotation.XmlType; |
21 | 21 |
|
22 |
import org.apache.commons.lang.StringUtils; |
|
23 | 22 |
import org.apache.log4j.Logger; |
24 | 23 |
import org.hibernate.annotations.Cascade; |
25 | 24 |
import org.hibernate.annotations.CascadeType; |
... | ... | |
111 | 110 |
|
112 | 111 |
@Override |
113 | 112 |
public String toString() { |
114 |
if (StringUtils.isNotBlank(this.abbreviatedText)){
|
|
113 |
if (isNotBlank(this.abbreviatedText)){ |
|
115 | 114 |
return this.abbreviatedText; |
116 |
}else if (StringUtils.isNotBlank(this.text)){
|
|
115 |
}else if (isNotBlank(this.text)){ |
|
117 | 116 |
return this.text; |
118 | 117 |
}else{ |
119 | 118 |
return super.toString(); |
Also available in: Unified diff
ref #9204 remove commons-lang2 from cdmlib dependencies