Skip to content

Commit

Permalink
put string literals at beginning of comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdcramer committed Sep 21, 2024
1 parent fd90694 commit 4c8517d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private GridPane buildTable(PhonoTable pt) {
for (int j = 0; j < pt.getRow(i).size(); j++) {
String phoneme = pt.getRow(i).getSound(j);
Button button = new Button();
if (!phoneme.equals("#") & !phoneme.equals("*")) {
if (!"#".equals(phoneme) & !"*".equals(phoneme)) {
button = new Button(phoneme);

button.setOnAction(new EventHandler<ActionEvent>() {
Expand Down

0 comments on commit 4c8517d

Please sign in to comment.