Skip to content

Commit

Permalink
Fix string comparisons that were using ==
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jan 28, 2015
1 parent 903eff8 commit 75ba2fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ protected List<String> run() {
if (request.getArgument() == null) {
throw new NullPointerException("Simulated Error");
}
if (request.getArgument() == "TIMEOUT") {
if (request.getArgument().equals("TIMEOUT")) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public void call(Subscriber<? super String> s) {
if (request.getArgument() == null) {
throw new NullPointerException("Simulated Error");
}
if (request.getArgument() == "TIMEOUT") {
if (request.getArgument().equals("TIMEOUT")) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {
Expand Down

0 comments on commit 75ba2fb

Please sign in to comment.