Fix string comparisons
This commit is contained in:
parent
351e363047
commit
d594f8ac11
9 changed files with 16 additions and 12 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue