Skip to content

Commit 2aee1cd

Browse files
committed
Switch to jSpecify nullability annotations.
1 parent a6783c2 commit 2aee1cd

File tree

12 files changed

+19
-8
lines changed

12 files changed

+19
-8
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@org.jspecify.annotations.NullMarked
2+
package de.odrotbohm.restbucks.core;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@org.jspecify.annotations.NullMarked
2+
package de.odrotbohm.restbucks.dashboard;

server/src/main/java/de/odrotbohm/restbucks/drinks/Drinks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import de.odrotbohm.restbucks.drinks.Drink.DrinkIdentifier;
1919

20+
import org.jspecify.annotations.Nullable;
2021
import org.springframework.data.domain.Sort;
2122
import org.springframework.data.repository.CrudRepository;
2223
import org.springframework.data.util.Streamable;
23-
import org.springframework.lang.Nullable;
2424

2525
/**
2626
* @author Oliver Drotbohm

server/src/main/java/de/odrotbohm/restbucks/drinks/DrinksNativeConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
*/
1616
package de.odrotbohm.restbucks.drinks;
1717

18+
import org.jspecify.annotations.Nullable;
1819
import org.springframework.aop.framework.ProxyFactory;
1920
import org.springframework.aot.hint.MemberCategory;
2021
import org.springframework.aot.hint.RuntimeHints;
2122
import org.springframework.aot.hint.RuntimeHintsRegistrar;
2223
import org.springframework.context.annotation.Configuration;
2324
import org.springframework.context.annotation.ImportRuntimeHints;
24-
import org.springframework.lang.Nullable;
2525

2626
/**
2727
* Additional configuration needed to produce Graal metadata to let some application properly work on it.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@org.jspecify.annotations.NullMarked
2+
package de.odrotbohm.restbucks.drinks;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@org.jspecify.annotations.NullMarked
2+
package de.odrotbohm.restbucks.engine;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@org.jspecify.annotations.NullMarked
2+
package de.odrotbohm.restbucks.order;

server/src/main/java/de/odrotbohm/restbucks/order/web/RootResourceModelProcessor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717

1818
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;
1919

20-
import de.odrotbohm.restbucks.order.Order;
21-
2220
import org.springframework.data.rest.webmvc.RepositoryLinksResource;
2321
import org.springframework.hateoas.LinkRelation;
2422
import org.springframework.hateoas.server.RepresentationModelProcessor;
2523
import org.springframework.stereotype.Component;
2624

2725
/**
28-
* {@link RepresentationModelProcessor} to add an {@link Order} creation link to the root resource.
26+
* {@link RepresentationModelProcessor} to add an {@link de.odrotbohm.restbucks.order.Order} creation link to the root
27+
* resource.
2928
*
3029
* @author Oliver Drotbohm
3130
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@org.springframework.lang.NonNullApi
1+
@org.jspecify.annotations.NullMarked
22
package de.odrotbohm.restbucks.order.web;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@org.springframework.lang.NonNullApi
1+
@org.jspecify.annotations.NullMarked
22
package de.odrotbohm.restbucks;

0 commit comments

Comments
 (0)