Skip to content

Commit

Permalink
Address review comments regarding array setters in new models
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatino10 committed Dec 15, 2017
1 parent ba7b146 commit 76a5219
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ public NluEnrichmentEmotion build() {
* @param targets the new targets
* @return the NluEnrichmentEmotion builder
*/
public Builder addTargets(String targets) {
Validator.notNull(targets, "targets cannot be null");
public Builder addTarget(String target) {
Validator.notNull(target, "target cannot be null");
if (this.targets == null) {
this.targets = new ArrayList<String>();
}
this.targets.add(targets);
this.targets.add(target);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ public NluEnrichmentSentiment build() {
* @param targets the new targets
* @return the NluEnrichmentSentiment builder
*/
public Builder addTargets(String targets) {
Validator.notNull(targets, "targets cannot be null");
public Builder addTarget(String target) {
Validator.notNull(target, "target cannot be null");
if (this.targets == null) {
this.targets = new ArrayList<String>();
}
this.targets.add(targets);
this.targets.add(target);
return this;
}

Expand Down

0 comments on commit 76a5219

Please sign in to comment.