jdk/test/java/lang/annotation/PackageMain.java
changeset 8999 ceee82509f6b
parent 5506 202f599c92aa
--- a/jdk/test/java/lang/annotation/PackageMain.java	Thu Mar 24 16:16:22 2011 +0800
+++ b/jdk/test/java/lang/annotation/PackageMain.java	Thu Mar 24 11:40:13 2011 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -21,8 +21,6 @@
  * questions.
  */
 
-import java.lang.annotation.Documented;
-
 public class PackageMain {
     public static void main(String[] args) throws Exception {
         Class<?> c = Class.forName("foo.bar.Baz");
@@ -30,7 +28,7 @@
         System.out.println("cl=" + c.getClassLoader());
         Package p = c.getPackage();
         System.out.println("p=" + p);
-        Documented d = p.getAnnotation(Documented.class);
+        Deprecated d = p.getAnnotation(Deprecated.class);
         if (d == null) throw new Error();
     }
 }