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:30:52 UTC
svn commit: r1647260 - in
/httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation:
Experimental.java Obsolete.java
Author: olegk
Date: Mon Dec 22 08:30:52 2014
New Revision: 1647260
URL: http://svn.apache.org/r1647260
Log:
Fixed @Experimental and @Obsolete target definitions
Modified:
httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Experimental.java
httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java
Modified: httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Experimental.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Experimental.java?rev=1647260&r1=1647259&r2=1647260&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Experimental.java (original)
+++ httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Experimental.java Mon Dec 22 08:30:52 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/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java?rev=1647260&r1=1647259&r2=1647260&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java (original)
+++ httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/annotation/Obsolete.java Mon Dec 22 08:30:52 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 {
}