hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1647261 - in /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/annotation: Experimental.java Obsolete.java
Date Mon, 22 Dec 2014 08:31:34 GMT
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 {
 }



Mime
View raw message