changeset 6200:e7edb0da9c6a

8004110: Remove debug code form sun/reflect/annotation/AnnotationSupport.java Reviewed-by: jjg, darcy
author jfranck
date Fri, 30 Nov 2012 09:47:17 +0100
parents c370048be8fc
children 43d2e02c4098
files src/share/classes/sun/reflect/annotation/AnnotationSupport.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/reflect/annotation/AnnotationSupport.java	Fri Nov 30 16:29:32 2012 +0000
+++ b/src/share/classes/sun/reflect/annotation/AnnotationSupport.java	Fri Nov 30 09:47:17 2012 +0100
@@ -37,7 +37,7 @@
 import sun.misc.JavaLangAccess;
 
 public final class AnnotationSupport {
-    private static JavaLangAccess javaLangAccess = sun.misc.SharedSecrets.getJavaLangAccess();
+    private static final JavaLangAccess javaLangAccess = sun.misc.SharedSecrets.getJavaLangAccess();
 
     /**
      * Finds and returns _one_ annotation of the type indicated by
@@ -104,7 +104,7 @@
     /**
      * Unpacks the {@code annotationMap} parameter into an array of
      * {@code Annotation}s. This method will unpack all repeating
-     * annotaions containers (once). An annotation type is marked as a
+     * annotations containers (once). An annotation type is marked as a
      * container by meta-annotating it the with the {@code
      * ContainerFor} annotation.
      *
@@ -175,7 +175,6 @@
                  IllegalArgumentException | // parameters doesn't match
                  InvocationTargetException | // the value method threw an exception
                  ClassCastException e) { // well, a cast failed ...
-            e.getCause().printStackTrace();
             throw new InvalidContainerAnnotationError(containerInstance + " is an invalid container for repeating annotations",
                                                       e,
                                                       containerInstance,