From ba7736026bbf36f25d6c65a732f988cc5fb7a2d9 Mon Sep 17 00:00:00 2001 From: Michael Schnell Date: Mon, 8 Jan 2024 17:24:19 +0100 Subject: [PATCH] Replaced Nullable with Jakarta type --- src/main/java/org/fuin/ddd4j/ddd/AbstractDomainEvent.java | 2 +- src/main/java/org/fuin/ddd4j/ddd/AbstractEvent.java | 2 +- src/main/java/org/fuin/ddd4j/ddd/AggregateVersion.java | 2 +- src/main/java/org/fuin/ddd4j/ddd/DomainEvent.java | 2 +- src/main/java/org/fuin/ddd4j/ddd/EntityNotFoundException.java | 2 +- src/main/java/org/fuin/ddd4j/ddd/Event.java | 2 +- src/main/java/org/fuin/ddd4j/ddd/Repository.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/fuin/ddd4j/ddd/AbstractDomainEvent.java b/src/main/java/org/fuin/ddd4j/ddd/AbstractDomainEvent.java index 16364d5..c92a511 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/AbstractDomainEvent.java +++ b/src/main/java/org/fuin/ddd4j/ddd/AbstractDomainEvent.java @@ -23,7 +23,7 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.fuin.objects4j.common.Contract; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; /** * Base class for domain events. diff --git a/src/main/java/org/fuin/ddd4j/ddd/AbstractEvent.java b/src/main/java/org/fuin/ddd4j/ddd/AbstractEvent.java index db3a7fa..bb2f594 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/AbstractEvent.java +++ b/src/main/java/org/fuin/ddd4j/ddd/AbstractEvent.java @@ -24,7 +24,7 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.fuin.objects4j.common.Contract; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; import org.fuin.objects4j.ui.Label; import org.fuin.objects4j.ui.Prompt; import org.fuin.objects4j.ui.ShortLabel; diff --git a/src/main/java/org/fuin/ddd4j/ddd/AggregateVersion.java b/src/main/java/org/fuin/ddd4j/ddd/AggregateVersion.java index 03c60a6..fa3b36f 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/AggregateVersion.java +++ b/src/main/java/org/fuin/ddd4j/ddd/AggregateVersion.java @@ -21,7 +21,7 @@ import jakarta.validation.constraints.NotNull; import org.fuin.objects4j.common.ConstraintViolationException; import org.fuin.objects4j.common.Contract; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; import org.fuin.objects4j.vo.AbstractIntegerValueObject; import java.util.Scanner; diff --git a/src/main/java/org/fuin/ddd4j/ddd/DomainEvent.java b/src/main/java/org/fuin/ddd4j/ddd/DomainEvent.java index 709b90e..3b7d1c7 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/DomainEvent.java +++ b/src/main/java/org/fuin/ddd4j/ddd/DomainEvent.java @@ -18,7 +18,7 @@ package org.fuin.ddd4j.ddd; import jakarta.validation.constraints.NotNull; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; /** * Domain event published by an entity. diff --git a/src/main/java/org/fuin/ddd4j/ddd/EntityNotFoundException.java b/src/main/java/org/fuin/ddd4j/ddd/EntityNotFoundException.java index d4c4079..8e50262 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/EntityNotFoundException.java +++ b/src/main/java/org/fuin/ddd4j/ddd/EntityNotFoundException.java @@ -25,7 +25,7 @@ import jakarta.xml.bind.annotation.XmlRootElement; import org.fuin.objects4j.common.ExceptionShortIdentifable; import org.fuin.objects4j.common.MarshalInformation; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; import org.fuin.objects4j.common.ToExceptionCapable; import org.fuin.objects4j.vo.ValueObject; diff --git a/src/main/java/org/fuin/ddd4j/ddd/Event.java b/src/main/java/org/fuin/ddd4j/ddd/Event.java index 792f436..bee0a59 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/Event.java +++ b/src/main/java/org/fuin/ddd4j/ddd/Event.java @@ -18,7 +18,7 @@ package org.fuin.ddd4j.ddd; import jakarta.validation.constraints.NotNull; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; import java.io.Serializable; import java.time.ZonedDateTime; diff --git a/src/main/java/org/fuin/ddd4j/ddd/Repository.java b/src/main/java/org/fuin/ddd4j/ddd/Repository.java index 33407bf..1a95314 100644 --- a/src/main/java/org/fuin/ddd4j/ddd/Repository.java +++ b/src/main/java/org/fuin/ddd4j/ddd/Repository.java @@ -18,7 +18,7 @@ package org.fuin.ddd4j.ddd; import jakarta.validation.constraints.NotNull; -import org.fuin.objects4j.common.Nullable; +import jakarta.annotation.Nullable; /** * Repository that supports CRUD operations for an aggregate.