Author: alexsmirnov
Date: 2010-01-25 22:15:23 -0500 (Mon, 25 Jan 2010)
New Revision: 16358
Added:
root/cdk/trunk/plugins/annotations/src/main/java/javax/
root/cdk/trunk/plugins/annotations/src/main/java/javax/annotation/
root/cdk/trunk/plugins/annotations/src/main/java/javax/annotation/Nullable.java
Log:
add JSR-305 "Nullable" annotation
Added: root/cdk/trunk/plugins/annotations/src/main/java/javax/annotation/Nullable.java
===================================================================
--- root/cdk/trunk/plugins/annotations/src/main/java/javax/annotation/Nullable.java
(rev 0)
+++
root/cdk/trunk/plugins/annotations/src/main/java/javax/annotation/Nullable.java 2010-01-26
03:15:23 UTC (rev 16358)
@@ -0,0 +1,24 @@
+package javax.annotation;
+
+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;
+
+
+
+/**
+ * This is a <a
href="http://jcp.org/en/jsr/detail?id=305">JSR-305</a> annotation. The
presence of this annotation
+ * indicates that parameter or field may have null value
+ * @author asmirnov
+ * @version $Id$
+ *
+ */
+@Documented
+
+(a)Retention(RetentionPolicy.RUNTIME)
+(a)Target({ElementType.PARAMETER, ElementType.FIELD})
+public @interface Nullable {
+
+}
Property changes on:
root/cdk/trunk/plugins/annotations/src/main/java/javax/annotation/Nullable.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native