Using binary meta annotations instead of custom versions.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/api.annotations.common/external/binaries-list Sun Feb 19 18:37:04 2017 +0100
1.3 @@ -0,0 +1,1 @@
1.4 +5871FB60DC68D67DA54A663C3FD636A10A532948 jsr305.jar
1.5 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/api.annotations.common/external/jsr305-license.txt Sun Feb 19 18:37:04 2017 +0100
2.3 @@ -0,0 +1,15 @@
2.4 +Name: JSR305
2.5 +License: New BSD
2.6 +Origin: http://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/2.0.0/jsr305-2.0.0.jar
2.7 +
2.8 +Use of JSR 305 is governed by the terms of the license below:
2.9 +
2.10 +[TEXT OF THE LICENSE]
2.11 +The JSR-305 reference implementation (lib/jsr305.jar) is
2.12 +distributed under the terms of the New BSD license:
2.13 +
2.14 + http://www.opensource.org/licenses/bsd-license.php
2.15 +
2.16 +See the JSR-305 home page for more information:
2.17 +
2.18 + http://code.google.com/p/jsr-305/
3.1 --- a/api.annotations.common/nbproject/project.properties Mon Dec 19 12:16:55 2016 +0100
3.2 +++ b/api.annotations.common/nbproject/project.properties Sun Feb 19 18:37:04 2017 +0100
3.3 @@ -46,3 +46,5 @@
3.4 javac.compilerargs=-Xlint -Xlint:-serial
3.5 javadoc.arch=${basedir}/arch.xml
3.6 javadoc.apichanges=${basedir}/apichanges.xml
3.7 +
3.8 +cp.extra=external/jsr305.jar
4.1 --- a/api.annotations.common/src/javax/annotation/Nonnull.java Mon Dec 19 12:16:55 2016 +0100
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,61 +0,0 @@
4.4 -/*
4.5 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4.6 - *
4.7 - * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
4.8 - *
4.9 - * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
4.10 - * Other names may be trademarks of their respective owners.
4.11 - *
4.12 - * The contents of this file are subject to the terms of either the GNU
4.13 - * General Public License Version 2 only ("GPL") or the Common
4.14 - * Development and Distribution License("CDDL") (collectively, the
4.15 - * "License"). You may not use this file except in compliance with the
4.16 - * License. You can obtain a copy of the License at
4.17 - * http://www.netbeans.org/cddl-gplv2.html
4.18 - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
4.19 - * specific language governing permissions and limitations under the
4.20 - * License. When distributing the software, include this License Header
4.21 - * Notice in each file and include the License file at
4.22 - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
4.23 - * particular file as subject to the "Classpath" exception as provided
4.24 - * by Oracle in the GPL Version 2 section of the License file that
4.25 - * accompanied this code. If applicable, add the following below the
4.26 - * License Header, with the fields enclosed by brackets [] replaced by
4.27 - * your own identifying information:
4.28 - * "Portions Copyrighted [year] [name of copyright owner]"
4.29 - *
4.30 - * If you wish your version of this file to be governed by only the CDDL
4.31 - * or only the GPL Version 2, indicate your decision by adding
4.32 - * "[Contributor] elects to include this software in this distribution
4.33 - * under the [CDDL or GPL Version 2] license." If you do not indicate a
4.34 - * single choice of license, a recipient has the option to distribute
4.35 - * your version of this file under either the CDDL, the GPL Version 2 or
4.36 - * to extend the choice of license to its licensees as provided above.
4.37 - * However, if you add GPL Version 2 code and therefore, elected the GPL
4.38 - * Version 2 license, then the option applies only if the new code is
4.39 - * made subject to such option by the copyright holder.
4.40 - *
4.41 - * Contributor(s):
4.42 - *
4.43 - * Portions Copyrighted 2008 Sun Microsystems, Inc.
4.44 - */
4.45 -
4.46 -package javax.annotation;
4.47 -
4.48 -import java.lang.annotation.Retention;
4.49 -import java.lang.annotation.RetentionPolicy;
4.50 -import javax.annotation.meta.TypeQualifier;
4.51 -import javax.annotation.meta.When;
4.52 -
4.53 -/**
4.54 - * JSR 305 placeholder.
4.55 - *
4.56 - * @author Petr Hejl
4.57 - */
4.58 -@Retention(RetentionPolicy.CLASS)
4.59 -@TypeQualifier
4.60 -public @interface Nonnull {
4.61 -
4.62 - When when() default When.ALWAYS;
4.63 -
4.64 -}
5.1 --- a/api.annotations.common/src/javax/annotation/meta/TypeQualifier.java Mon Dec 19 12:16:55 2016 +0100
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,61 +0,0 @@
5.4 -/*
5.5 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5.6 - *
5.7 - * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
5.8 - *
5.9 - * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
5.10 - * Other names may be trademarks of their respective owners.
5.11 - *
5.12 - * The contents of this file are subject to the terms of either the GNU
5.13 - * General Public License Version 2 only ("GPL") or the Common
5.14 - * Development and Distribution License("CDDL") (collectively, the
5.15 - * "License"). You may not use this file except in compliance with the
5.16 - * License. You can obtain a copy of the License at
5.17 - * http://www.netbeans.org/cddl-gplv2.html
5.18 - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
5.19 - * specific language governing permissions and limitations under the
5.20 - * License. When distributing the software, include this License Header
5.21 - * Notice in each file and include the License file at
5.22 - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
5.23 - * particular file as subject to the "Classpath" exception as provided
5.24 - * by Oracle in the GPL Version 2 section of the License file that
5.25 - * accompanied this code. If applicable, add the following below the
5.26 - * License Header, with the fields enclosed by brackets [] replaced by
5.27 - * your own identifying information:
5.28 - * "Portions Copyrighted [year] [name of copyright owner]"
5.29 - *
5.30 - * If you wish your version of this file to be governed by only the CDDL
5.31 - * or only the GPL Version 2, indicate your decision by adding
5.32 - * "[Contributor] elects to include this software in this distribution
5.33 - * under the [CDDL or GPL Version 2] license." If you do not indicate a
5.34 - * single choice of license, a recipient has the option to distribute
5.35 - * your version of this file under either the CDDL, the GPL Version 2 or
5.36 - * to extend the choice of license to its licensees as provided above.
5.37 - * However, if you add GPL Version 2 code and therefore, elected the GPL
5.38 - * Version 2 license, then the option applies only if the new code is
5.39 - * made subject to such option by the copyright holder.
5.40 - *
5.41 - * Contributor(s):
5.42 - *
5.43 - * Portions Copyrighted 2008 Sun Microsystems, Inc.
5.44 - */
5.45 -
5.46 -package javax.annotation.meta;
5.47 -
5.48 -import java.lang.annotation.ElementType;
5.49 -import java.lang.annotation.Retention;
5.50 -import java.lang.annotation.RetentionPolicy;
5.51 -import java.lang.annotation.Target;
5.52 -
5.53 -/**
5.54 - * JSR 305 placeholder.
5.55 - *
5.56 - * @author Petr Hejl
5.57 - */
5.58 -@Target(ElementType.ANNOTATION_TYPE)
5.59 -@Retention(RetentionPolicy.CLASS)
5.60 -public @interface TypeQualifier {
5.61 -
5.62 - Class<?> applicableTo() default Object.class;
5.63 -
5.64 -}
6.1 --- a/api.annotations.common/src/javax/annotation/meta/TypeQualifierNickname.java Mon Dec 19 12:16:55 2016 +0100
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,59 +0,0 @@
6.4 -/*
6.5 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
6.6 - *
6.7 - * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
6.8 - *
6.9 - * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
6.10 - * Other names may be trademarks of their respective owners.
6.11 - *
6.12 - * The contents of this file are subject to the terms of either the GNU
6.13 - * General Public License Version 2 only ("GPL") or the Common
6.14 - * Development and Distribution License("CDDL") (collectively, the
6.15 - * "License"). You may not use this file except in compliance with the
6.16 - * License. You can obtain a copy of the License at
6.17 - * http://www.netbeans.org/cddl-gplv2.html
6.18 - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
6.19 - * specific language governing permissions and limitations under the
6.20 - * License. When distributing the software, include this License Header
6.21 - * Notice in each file and include the License file at
6.22 - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
6.23 - * particular file as subject to the "Classpath" exception as provided
6.24 - * by Oracle in the GPL Version 2 section of the License file that
6.25 - * accompanied this code. If applicable, add the following below the
6.26 - * License Header, with the fields enclosed by brackets [] replaced by
6.27 - * your own identifying information:
6.28 - * "Portions Copyrighted [year] [name of copyright owner]"
6.29 - *
6.30 - * If you wish your version of this file to be governed by only the CDDL
6.31 - * or only the GPL Version 2, indicate your decision by adding
6.32 - * "[Contributor] elects to include this software in this distribution
6.33 - * under the [CDDL or GPL Version 2] license." If you do not indicate a
6.34 - * single choice of license, a recipient has the option to distribute
6.35 - * your version of this file under either the CDDL, the GPL Version 2 or
6.36 - * to extend the choice of license to its licensees as provided above.
6.37 - * However, if you add GPL Version 2 code and therefore, elected the GPL
6.38 - * Version 2 license, then the option applies only if the new code is
6.39 - * made subject to such option by the copyright holder.
6.40 - *
6.41 - * Contributor(s):
6.42 - *
6.43 - * Portions Copyrighted 2008 Sun Microsystems, Inc.
6.44 - */
6.45 -
6.46 -package javax.annotation.meta;
6.47 -
6.48 -import java.lang.annotation.ElementType;
6.49 -import java.lang.annotation.Retention;
6.50 -import java.lang.annotation.RetentionPolicy;
6.51 -import java.lang.annotation.Target;
6.52 -
6.53 -/**
6.54 - * JSR 305 placeholder.
6.55 - *
6.56 - * @author Petr Hejl
6.57 - */
6.58 -@Target(ElementType.ANNOTATION_TYPE)
6.59 -@Retention(RetentionPolicy.CLASS)
6.60 -public @interface TypeQualifierNickname {
6.61 -
6.62 -}
7.1 --- a/api.annotations.common/src/javax/annotation/meta/When.java Mon Dec 19 12:16:55 2016 +0100
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,58 +0,0 @@
7.4 -/*
7.5 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
7.6 - *
7.7 - * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
7.8 - *
7.9 - * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
7.10 - * Other names may be trademarks of their respective owners.
7.11 - *
7.12 - * The contents of this file are subject to the terms of either the GNU
7.13 - * General Public License Version 2 only ("GPL") or the Common
7.14 - * Development and Distribution License("CDDL") (collectively, the
7.15 - * "License"). You may not use this file except in compliance with the
7.16 - * License. You can obtain a copy of the License at
7.17 - * http://www.netbeans.org/cddl-gplv2.html
7.18 - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
7.19 - * specific language governing permissions and limitations under the
7.20 - * License. When distributing the software, include this License Header
7.21 - * Notice in each file and include the License file at
7.22 - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
7.23 - * particular file as subject to the "Classpath" exception as provided
7.24 - * by Oracle in the GPL Version 2 section of the License file that
7.25 - * accompanied this code. If applicable, add the following below the
7.26 - * License Header, with the fields enclosed by brackets [] replaced by
7.27 - * your own identifying information:
7.28 - * "Portions Copyrighted [year] [name of copyright owner]"
7.29 - *
7.30 - * If you wish your version of this file to be governed by only the CDDL
7.31 - * or only the GPL Version 2, indicate your decision by adding
7.32 - * "[Contributor] elects to include this software in this distribution
7.33 - * under the [CDDL or GPL Version 2] license." If you do not indicate a
7.34 - * single choice of license, a recipient has the option to distribute
7.35 - * your version of this file under either the CDDL, the GPL Version 2 or
7.36 - * to extend the choice of license to its licensees as provided above.
7.37 - * However, if you add GPL Version 2 code and therefore, elected the GPL
7.38 - * Version 2 license, then the option applies only if the new code is
7.39 - * made subject to such option by the copyright holder.
7.40 - *
7.41 - * Contributor(s):
7.42 - *
7.43 - * Portions Copyrighted 2008 Sun Microsystems, Inc.
7.44 - */
7.45 -
7.46 -package javax.annotation.meta;
7.47 -
7.48 -/**
7.49 - * JSR 305 placeholder.
7.50 - *
7.51 - * @author Petr Hejl
7.52 - */
7.53 -public enum When {
7.54 - ALWAYS,
7.55 -
7.56 - UNKNOWN,
7.57 -
7.58 - MAYBE,
7.59 -
7.60 - NEVER
7.61 -}