Skip to content

Commit 8370248

Browse files
committed
Revert change
1 parent f82d757 commit 8370248

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/java.base/share/classes/java/lang/Module.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,11 @@ public boolean canRead(Module other) {
485485

486486
// if other is an unnamed module then check if this module reads
487487
// all unnamed modules
488-
return !other.isNamed()
489-
&& ReflectionData.reads.containsKeyPair(this, ALL_UNNAMED_MODULE);
488+
if (!other.isNamed()
489+
&& ReflectionData.reads.containsKeyPair(this, ALL_UNNAMED_MODULE))
490+
return true;
491+
492+
return false;
490493
}
491494

492495
/**

0 commit comments

Comments
 (0)