objectcomputing / check-ins

Other
7 stars 7 forks source link

Replace !isPresent() calls with isEmpty() #2524

Closed timyates closed 3 days ago

timyates commented 3 days ago

Since Java 11, there has been a method Optional.isEmpty() which should be used instead !Optional.isPresent() for ease of reading