提交 c7e03e48 编写于 作者: J jfranck

8004110: Remove debug code form sun/reflect/annotation/AnnotationSupport.java

Reviewed-by: jjg, darcy
上级 cd950443
...@@ -37,7 +37,7 @@ import sun.reflect.Reflection; ...@@ -37,7 +37,7 @@ import sun.reflect.Reflection;
import sun.misc.JavaLangAccess; import sun.misc.JavaLangAccess;
public final class AnnotationSupport { 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 * Finds and returns _one_ annotation of the type indicated by
...@@ -104,7 +104,7 @@ public final class AnnotationSupport { ...@@ -104,7 +104,7 @@ public final class AnnotationSupport {
/** /**
* Unpacks the {@code annotationMap} parameter into an array of * Unpacks the {@code annotationMap} parameter into an array of
* {@code Annotation}s. This method will unpack all repeating * {@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 * container by meta-annotating it the with the {@code
* ContainerFor} annotation. * ContainerFor} annotation.
* *
...@@ -175,7 +175,6 @@ public final class AnnotationSupport { ...@@ -175,7 +175,6 @@ public final class AnnotationSupport {
IllegalArgumentException | // parameters doesn't match IllegalArgumentException | // parameters doesn't match
InvocationTargetException | // the value method threw an exception InvocationTargetException | // the value method threw an exception
ClassCastException e) { // well, a cast failed ... ClassCastException e) { // well, a cast failed ...
e.getCause().printStackTrace();
throw new InvalidContainerAnnotationError(containerInstance + " is an invalid container for repeating annotations", throw new InvalidContainerAnnotationError(containerInstance + " is an invalid container for repeating annotations",
e, e,
containerInstance, containerInstance,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册