diff --git a/src/share/classes/com/sun/tools/javac/comp/Annotate.java b/src/share/classes/com/sun/tools/javac/comp/Annotate.java index eae5e943c2353d942755085a0adca0e60d1040cd..eb68899a9bc9e1901bed1b220b6eac14d1d78de1 100644 --- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java +++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java @@ -26,7 +26,6 @@ package com.sun.tools.javac.comp; import java.util.Map; -import java.util.Objects; import com.sun.tools.javac.util.*; import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; @@ -151,10 +150,10 @@ public class Annotate { Map> annotated, Map pos, Log log) { - Objects.requireNonNull(env); - Objects.requireNonNull(annotated); - Objects.requireNonNull(pos); - Objects.requireNonNull(log); + Assert.checkNonNull(env); + Assert.checkNonNull(annotated); + Assert.checkNonNull(pos); + Assert.checkNonNull(log); this.env = env; this.annotated = annotated;