Skip to content

Commit

Permalink
Fix all sets to be withs
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Jun 6, 2016
1 parent 9e11dd2 commit 24d5c1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ public String location() {
* Set the location value.
*
* @param location the location value to set
* @return the resource itself
*/
public void withLocation(String location) {
public Resource withLocation(String location) {
this.location = location;
return this;
}

/**
Expand All @@ -102,8 +104,10 @@ public Map<String, String> getTags() {
* Set the tags value.
*
* @param tags the tags value to set
* @return the resource itself
*/
public void withTags(Map<String, String> tags) {
public Resource withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ public String id() {
* Set the id value.
*
* @param id the id value to set
* @return the sub resource itself
*/
public void setId(String id) {
public SubResource withId(String id) {
this.id = id;
return this;
}
}

0 comments on commit 24d5c1e

Please sign in to comment.