Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #664 from zanata/zanata-spa-plural
Browse files Browse the repository at this point in the history
Fix getContents for plural in zanata-spa
  • Loading branch information
Alex Eng committed Jan 19, 2015
2 parents 2d84f53 + e49b082 commit e901909
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -81,13 +81,10 @@ public void setPlural(boolean plural) {

@JsonIgnore
public List<String> getContents() {
if (content != null) {
return Lists.newArrayList(content);
} else if (contents != null) {
return contents;
} else {
return Collections.emptyList();
if(contents == null && content == null) {
return Collections.<String>emptyList();
}
return isPlural() ? contents : Lists.newArrayList(content);
}

@JsonIgnore
Expand Down

0 comments on commit e901909

Please sign in to comment.