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.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicate that the annotated element uses Java7 specific constructs
|
* Indicates that the annotated element uses Java 7 specific API constructs,
|
||||||
* and therefore requires a Java7 environment.
|
* without implying that it strictly requires Java 7.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
@Retention(java.lang.annotation.RetentionPolicy.CLASS)
|
@Retention(RetentionPolicy.CLASS)
|
||||||
@Documented
|
|
||||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||||
|
@Documented
|
||||||
public @interface UsesJava7 {
|
public @interface UsesJava7 {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,18 +19,18 @@ package org.springframework.core;
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicate that the annotated element uses Java8 specific constructs
|
* Indicates that the annotated element uses Java 8 specific API constructs,
|
||||||
* and therefore requires a Java8 environment.
|
* without implying that it strictly requires Java 8.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @since 4.1
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
@Retention(java.lang.annotation.RetentionPolicy.CLASS)
|
@Retention(RetentionPolicy.CLASS)
|
||||||
@Documented
|
|
||||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||||
|
@Documented
|
||||||
public @interface UsesJava8 {
|
public @interface UsesJava8 {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,18 +19,18 @@ package org.springframework.core;
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
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.
|
* {@code com.sun.*} classes, which is only available on a Sun/Oracle JVM.
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @since 4.1
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
@Retention(java.lang.annotation.RetentionPolicy.CLASS)
|
@Retention(RetentionPolicy.CLASS)
|
||||||
@Documented
|
|
||||||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE})
|
||||||
|
@Documented
|
||||||
public @interface UsesSunHttpServer {
|
public @interface UsesSunHttpServer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue