changeset 1321:324b98626f58

7196774: javac cannot be built with JDK 6 after 7151010 Reviewed-by: mcimadamore
author jjg
date Fri, 07 Sep 2012 11:24:00 -0700
parents 489905e5018e
children 1a7c11b22192
files src/share/classes/com/sun/tools/javac/comp/Annotate.java
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Fri Sep 07 11:12:16 2012 -0700
+++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Fri Sep 07 11:24:00 2012 -0700
@@ -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 @@
                                        Map<Symbol.TypeSymbol, ListBuffer<Attribute.Compound>> annotated,
                                        Map<Attribute.Compound, JCDiagnostic.DiagnosticPosition> 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;