mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8291954: Use Optional.isEmpty instead of !Optional.isPresent in java.base
Reviewed-by: jpai, alanb, lancea, rriggs, bpb
This commit is contained in:
parent
87cda21c5d
commit
ae52053757
6 changed files with 21 additions and 23 deletions
|
@ -867,7 +867,7 @@ final class Resolver {
|
|||
Set<ModuleReference> result = new HashSet<>(beforeModules);
|
||||
for (ModuleReference mref : afterModules) {
|
||||
String name = mref.descriptor().name();
|
||||
if (!beforeFinder.find(name).isPresent()
|
||||
if (beforeFinder.find(name).isEmpty()
|
||||
&& findInParent(name) == null) {
|
||||
result.add(mref);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue