Skip to content

Commit

Permalink
Apparently old versions of java 1.8 don't have strip()
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Oct 10, 2023
1 parent 741e3bf commit 3892925
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public static void main(String[] args) {
String text = "";
while (text.equals("")) {
try {
text = textIterator.next().strip();
text = textIterator.next().trim();
} catch (NoSuchElementException e) {
throw new RuntimeException("Processed " + graphIdx + " trees, but there are more trees and text is empty", e);
}
Expand Down

0 comments on commit 3892925

Please sign in to comment.