Skip to content

Commit

Permalink
Change return type to allow chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
tspoke committed Mar 3, 2017
1 parent 36c6e1c commit 287be6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public void after() {

@Test
public void getOne() throws Exception {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public Filter(String key, int value) {
add(key, FilterType.EQUAL, String.valueOf(value));
}

public void add(String key, FilterType type, String value) {
public Filter add(String key, FilterType type, String value) {
this.put(key, new KeyValuePair(type, value));
return this;
}

/**
Expand Down

0 comments on commit 287be6a

Please sign in to comment.