Skip to content

Commit 127cf0b

Browse files
author
Vincent Potucek
committed
Add @nullable annotations throughout the codebase
1 parent f63defb commit 127cf0b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compat/maven-compat/src/test/java/org/apache/maven/SimpleLookup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public <T> T lookup(Class<T> type) {
4343
}
4444

4545
@Override
46-
public <T> @Nullable T lookup(Class<T> type, String name) {
46+
@Nullable
47+
public <T> T lookup(Class<T> type, String name) {
4748
return null;
4849
}
4950

impl/maven-core/src/test/java/org/apache/maven/SimpleLookup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public <T> T lookup(Class<T> type) {
4343
}
4444

4545
@Override
46-
public <T> @Nullable T lookup(Class<T> type, String name) {
46+
@Nullable
47+
public <T> T lookup(Class<T> type, String name) {
4748
return null;
4849
}
4950

0 commit comments

Comments
 (0)