Skip to content

Commit 064b7ed

Browse files
committed
Use isEmpty instead of comparing to an empty string
1 parent 5d78c1b commit 064b7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsgl/src/main/java/jsgl/jogl/model/ObjModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Face(String line, ObjMaterial material)
7171
readVertexFormat(parts);
7272
} else if (subparts.length == 2) {
7373
readVertexTexCoordsFormat(parts);
74-
} else if (subparts[1].equals("")) {
74+
} else if (subparts[1].isEmpty()) {
7575
readVertexNormalFormat(parts);
7676
} else {
7777
readVertexTexCoordsNormalFormat(parts);

0 commit comments

Comments
 (0)