Skip to content

Commit

Permalink
Use isEmpty instead of comparing to an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Sep 23, 2023
1 parent 5d78c1b commit 064b7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsgl/src/main/java/jsgl/jogl/model/ObjModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Face(String line, ObjMaterial material)
readVertexFormat(parts);
} else if (subparts.length == 2) {
readVertexTexCoordsFormat(parts);
} else if (subparts[1].equals("")) {
} else if (subparts[1].isEmpty()) {
readVertexNormalFormat(parts);
} else {
readVertexTexCoordsNormalFormat(parts);
Expand Down

0 comments on commit 064b7ed

Please sign in to comment.