Skip to content

Commit 1c8e6d7

Browse files
committed
use Objects requireNonNull
1 parent 2fb7c37 commit 1c8e6d7

File tree

1 file changed

+2
-1
lines changed
  • substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/meta

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/meta/AnalysisType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.util.Collection;
3131
import java.util.HashSet;
3232
import java.util.List;
33+
import java.util.Objects;
3334
import java.util.Set;
3435
import java.util.concurrent.ConcurrentHashMap;
3536
import java.util.concurrent.ConcurrentMap;
@@ -1304,7 +1305,7 @@ public AnalysisMethod findConstructor(Signature signature) {
13041305
}
13051306

13061307
public Set<AnalysisMethod> getOpenTypeWorldDispatchTableMethods() {
1307-
AnalysisError.guarantee(dispatchTableMethods != null);
1308+
Objects.requireNonNull(dispatchTableMethods);
13081309
return dispatchTableMethods;
13091310
}
13101311

0 commit comments

Comments
 (0)