changeset 3087:bbf852ffad28

Do not create an error message String just for a null check.
author wmdietl
date Wed, 04 Dec 2013 18:38:14 -0500
parents f189794ce07a
children 7e1e8c568a26
files src/share/classes/com/sun/tools/javac/comp/Check.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/Check.java	Wed Dec 04 18:36:53 2013 -0500
+++ b/src/share/classes/com/sun/tools/javac/comp/Check.java	Wed Dec 04 18:38:14 2013 -0500
@@ -2740,7 +2740,7 @@
     }
 
     public void validateTypeAnnotation(JCAnnotation a, boolean isTypeParameter) {
-        Assert.checkNonNull(a.type, "annotation tree hasn't been attributed yet: " + a);
+        Assert.checkNonNull(a.type); // , "annotation tree hasn't been attributed yet: " + a);
         validateAnnotationTree(a);
 
         if (a.hasTag(TYPE_ANNOTATION) &&