This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 30253cd1deb3c4d62f4a055d3d8de5d138b04fbd Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon May 16 13:00:29 2022 +0100 Add new annotations for Annotations API 2.1 --- java/jakarta/annotation/Nonnull.java | 31 +++++++++++++++++++++++++++++++ java/jakarta/annotation/Nullable.java | 31 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/java/jakarta/annotation/Nonnull.java b/java/jakarta/annotation/Nonnull.java new file mode 100644 index 0000000000..7fac3b8e57 --- /dev/null +++ b/java/jakarta/annotation/Nonnull.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package jakarta.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +/** + * @since Common Annotations 2.1 + * + */ +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface Nonnull { + +} diff --git a/java/jakarta/annotation/Nullable.java b/java/jakarta/annotation/Nullable.java new file mode 100644 index 0000000000..7ec2e1e715 --- /dev/null +++ b/java/jakarta/annotation/Nullable.java @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package jakarta.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +/** + * @since Common Annotations 2.1 + * + */ +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface Nullable { + +} --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org