Revised definition of @UsesX annotations
This commit is contained in:
parent
5dcd55b23b
commit
39e1342302
|
@ -19,17 +19,18 @@ package org.springframework.core;
|
|||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Indicate that the annotated element uses Java7 specific constructs
|
||||
* and therefore requires a Java7 environment.
|
||||
* Indicates that the annotated element uses Java 7 specific API constructs,
|
||||
* without implying that it strictly requires Java 7.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 4.1
|
||||
*/
|
||||
@Retention(java.lang.annotation.RetentionPolicy.CLASS)
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||
@Documented
|
||||
public @interface UsesJava7 {
|
||||
|
||||
}
|
||||
|
|
|
@ -19,18 +19,18 @@ package org.springframework.core;
|
|||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Indicate that the annotated element uses Java8 specific constructs
|
||||
* and therefore requires a Java8 environment.
|
||||
* Indicates that the annotated element uses Java 8 specific API constructs,
|
||||
* without implying that it strictly requires Java 8.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 4.1
|
||||
*/
|
||||
@Retention(java.lang.annotation.RetentionPolicy.CLASS)
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||
@Documented
|
||||
public @interface UsesJava8 {
|
||||
|
||||
}
|
||||
|
|
|
@ -19,18 +19,18 @@ package org.springframework.core;
|
|||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Indicate that the annotated element uses the Http Server available in
|
||||
* Indicates that the annotated element uses the Http Server available in
|
||||
* {@code com.sun.*} classes, which is only available on a Sun/Oracle JVM.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @since 4.1
|
||||
*/
|
||||
@Retention(java.lang.annotation.RetentionPolicy.CLASS)
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||
@Documented
|
||||
public @interface UsesSunHttpServer {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue