OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Compare Revisions

Regard whitespace Rev 143 → Rev 144

/trunk/OpenConcerto/src/org/openconcerto/ui/light/LightUITextArea.java
54,11 → 54,6
}
 
@Override
public LightUIElement clone() {
return new LightUITextArea(this);
}
 
@Override
protected void copy(final LightUIElement element) {
super.copy(element);
if (!(element instanceof LightUITextArea)) {
76,8 → 71,11
 
@Override
public Object getValueForContext() {
return (this.getValue() == null) ? null : ((this.getValue().trim().equals("")) ? null : this.getValue());
if (this.getValue() == null || this.getValue().trim().isEmpty()) {
return null;
}
return this.getValue();
}
 
@Override
public JSONObject toJSON() {
89,7 → 87,7
@Override
public void fromJSON(final JSONObject json) {
super.fromJSON(json);
final Integer jsonValues = (Integer) JSONConverter.getParameterFromJSON(json, "nbline", Integer.class);
final Integer jsonValues = JSONConverter.getParameterFromJSON(json, "nbline", Integer.class);
this.nbLine = jsonValues.intValue();
}