Closed berry120 closed 3 years ago
In SurvivorSongbookParser, lines 70-75, we're doing a manual null check, and then returning an empty list if null.
Instead, we should be using the Objects.requireNonNullElseGet() method to achieve the same thing in a single line.
Objects.requireNonNullElseGet()
I have done this and sent a pull request.
In SurvivorSongbookParser, lines 70-75, we're doing a manual null check, and then returning an empty list if null.
Instead, we should be using the
Objects.requireNonNullElseGet()
method to achieve the same thing in a single line.