Skip to content

Commit d599d55

Browse files
committed
Add javax.annotation.Nullable impl
1 parent 0ea266e commit d599d55

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Version 3.5.1 (2018-04-28)
22

3+
* [new] Add an implementation of `javax.annotation.Nullable` avoiding the need of an additional dependency for null injection.
34
* [chg] Remove the need for `jaxb-api` dependency for `seed-rest-jersey2` module under Java 9.
45

56
# Version 3.5.0 (2018-03-16)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright © 2013-2018, The SeedStack authors <http://seedstack.org>
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*/
8+
9+
package javax.annotation;
10+
11+
import java.lang.annotation.Documented;
12+
import java.lang.annotation.Retention;
13+
import java.lang.annotation.RetentionPolicy;
14+
15+
/**
16+
* The annotated element could be null under some circumstances.
17+
*
18+
* <p>
19+
* Can be used on injection points to specify that injecting a null is allowed.
20+
* </p>
21+
*/
22+
@Documented
23+
@Retention(RetentionPolicy.RUNTIME)
24+
public @interface Nullable {
25+
26+
}

0 commit comments

Comments
 (0)