From 5f7a94ad0194aaff15aeca5ef16efca067bb257a Mon Sep 17 00:00:00 2001
From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com>
Date: Wed, 9 Aug 2023 11:36:19 -0700
Subject: [PATCH] replace all javax annotations in tests
---
.../src/main/java/com/microsoft/kiota/PeriodAndDuration.java | 2 +-
.../test/java/com/microsoft/kiota/RequestInformationTest.java | 4 ++--
.../microsoft/kiota/serialization/mocks/SecondTestEntity.java | 4 ++--
.../com/microsoft/kiota/serialization/mocks/TestEntity.java | 4 ++--
.../kiota/serialization/mocks/IntersectionTypeMock.java | 4 ++--
.../microsoft/kiota/serialization/mocks/SecondTestEntity.java | 4 ++--
.../com/microsoft/kiota/serialization/mocks/TestEntity.java | 4 ++--
.../microsoft/kiota/serialization/mocks/UnionTypeMock.java | 4 ++--
.../microsoft/kiota/serialization/mocks/SecondTestEntity.java | 4 ++--
.../com/microsoft/kiota/serialization/mocks/TestEntity.java | 4 ++--
10 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/PeriodAndDuration.java b/components/abstractions/src/main/java/com/microsoft/kiota/PeriodAndDuration.java
index bda099da1..e9508ff67 100644
--- a/components/abstractions/src/main/java/com/microsoft/kiota/PeriodAndDuration.java
+++ b/components/abstractions/src/main/java/com/microsoft/kiota/PeriodAndDuration.java
@@ -1,7 +1,7 @@
package com.microsoft.kiota;
import jakarta.annotation.Nonnull;
-import javax.annotation.concurrent.Immutable;
+import com.google.errorprone.annotations.Immutable;
import java.io.Serializable;
import java.time.Duration;
import java.time.Period;
diff --git a/components/abstractions/src/test/java/com/microsoft/kiota/RequestInformationTest.java b/components/abstractions/src/test/java/com/microsoft/kiota/RequestInformationTest.java
index 1112e5c6f..8182fa448 100644
--- a/components/abstractions/src/test/java/com/microsoft/kiota/RequestInformationTest.java
+++ b/components/abstractions/src/test/java/com/microsoft/kiota/RequestInformationTest.java
@@ -238,10 +238,10 @@ class GetQueryParameters
{
/// Select properties to be returned\
@QueryParameter(name ="%24select")
- @javax.annotation.Nullable
+ @jakarta.annotation.Nullable
public String[] select;
/// Search items by search phrases
@QueryParameter(name ="%24search")
- @javax.annotation.Nullable
+ @jakarta.annotation.Nullable
public String search;
}
\ No newline at end of file
diff --git a/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java b/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
index 71793aa62..30e405d53 100644
--- a/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
+++ b/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
@@ -63,8 +63,8 @@ public Long getFailureRate() {
public void setFailureRate(Long value) {
this._failureRate = value;
}
- @javax.annotation.Nonnull
- public static SecondTestEntity createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static SecondTestEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
return new SecondTestEntity();
}
}
diff --git a/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java b/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
index e2eefbc07..99c51ac84 100644
--- a/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
+++ b/components/serialization/form/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
@@ -137,8 +137,8 @@ public void serialize(SerializationWriter writer) {
public Map getAdditionalData() {
return _additionalData;
}
- @javax.annotation.Nonnull
- public static TestEntity createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static TestEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
return new TestEntity();
}
}
diff --git a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/IntersectionTypeMock.java b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/IntersectionTypeMock.java
index bc498091d..85d5d415b 100644
--- a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/IntersectionTypeMock.java
+++ b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/IntersectionTypeMock.java
@@ -17,8 +17,8 @@ public class IntersectionTypeMock implements Parsable, ComposedTypeWrapper {
private SecondTestEntity _composedType2;
private String _stringValue;
private java.util.List _composedType3;
- @javax.annotation.Nonnull
- public static IntersectionTypeMock createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static IntersectionTypeMock createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
final var result = new IntersectionTypeMock();
if (parseNode.getStringValue() != null) {
diff --git a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
index 71793aa62..30e405d53 100644
--- a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
+++ b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
@@ -63,8 +63,8 @@ public Long getFailureRate() {
public void setFailureRate(Long value) {
this._failureRate = value;
}
- @javax.annotation.Nonnull
- public static SecondTestEntity createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static SecondTestEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
return new SecondTestEntity();
}
}
diff --git a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
index a6e57f682..97185e58d 100644
--- a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
+++ b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
@@ -127,8 +127,8 @@ public void serialize(SerializationWriter writer) {
public Map getAdditionalData() {
return _additionalData;
}
- @javax.annotation.Nonnull
- public static TestEntity createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static TestEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
return new TestEntity();
}
}
diff --git a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/UnionTypeMock.java b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/UnionTypeMock.java
index ebcbd95e7..696fc7a96 100644
--- a/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/UnionTypeMock.java
+++ b/components/serialization/json/src/test/java/com/microsoft/kiota/serialization/mocks/UnionTypeMock.java
@@ -15,8 +15,8 @@ public class UnionTypeMock implements Parsable, ComposedTypeWrapper {
private SecondTestEntity _composedType2;
private String _stringValue;
private java.util.List _composedType3;
- @javax.annotation.Nonnull
- public static UnionTypeMock createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static UnionTypeMock createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
final UnionTypeMock result = new UnionTypeMock();
final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type");
diff --git a/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java b/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
index 71793aa62..30e405d53 100644
--- a/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
+++ b/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/SecondTestEntity.java
@@ -63,8 +63,8 @@ public Long getFailureRate() {
public void setFailureRate(Long value) {
this._failureRate = value;
}
- @javax.annotation.Nonnull
- public static SecondTestEntity createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static SecondTestEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
return new SecondTestEntity();
}
}
diff --git a/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java b/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
index e2eefbc07..99c51ac84 100644
--- a/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
+++ b/components/serialization/multipart/src/test/java/com/microsoft/kiota/serialization/mocks/TestEntity.java
@@ -137,8 +137,8 @@ public void serialize(SerializationWriter writer) {
public Map getAdditionalData() {
return _additionalData;
}
- @javax.annotation.Nonnull
- public static TestEntity createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
+ @jakarta.annotation.Nonnull
+ public static TestEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
return new TestEntity();
}
}