You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/12/22 09:31:34 UTC

svn commit: r1647261 - in /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation: Experimental.java Obsolete.java

Author: olegk
Date: Mon Dec 22 08:31:34 2014
New Revision: 1647261

URL: http://svn.apache.org/r1647261
Log:
Fixed @Experimental and @Obsolete target definitions

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Experimental.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Experimental.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Experimental.java?rev=1647261&r1=1647260&r2=1647261&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Experimental.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Experimental.java Mon Dec 22 08:31:34 2014
@@ -36,7 +36,7 @@ import java.lang.annotation.Target;
  * The field or method to which this annotation is applied is marked as experimental.
  */
 @Documented
-@Target({ElementType.FIELD, ElementType.METHOD})
+@Target({ElementType.METHOD, ElementType.TYPE})
 @Retention(RetentionPolicy.CLASS)
 public @interface Experimental {
 }

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java?rev=1647261&r1=1647260&r2=1647261&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java Mon Dec 22 08:31:34 2014
@@ -37,7 +37,7 @@ import java.lang.annotation.Target;
  * requirements of the HTTP protocol or a related protocol that are now obsolete.
  */
 @Documented
-@Target({ElementType.FIELD, ElementType.METHOD})
+@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
 @Retention(RetentionPolicy.CLASS)
 public @interface Obsolete {
 }