Fix string comparisons

This commit is contained in:
Graham Triggs 2017-09-18 18:31:09 +01:00
parent 351e363047
commit d594f8ac11
9 changed files with 16 additions and 12 deletions

View file

@ -1085,7 +1085,7 @@ public class DumpDirectiveTest {
}
public String getName(String which) {
return which == "first" ? firstName : lastName;
return "first".equals(which) ? firstName : lastName;
}
public String getMiddleName() {