Skip to content

Commit

Permalink
replace all javax annotations in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsessanchez committed Aug 9, 2023
1 parent 6c8fe19 commit 5f7a94a
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ class GetQueryParameters
{
/// <summary>Select properties to be returned</summary>\
@QueryParameter(name ="%24select")
@javax.annotation.Nullable
@jakarta.annotation.Nullable
public String[] select;
/// <summary>Search items by search phrases</summary>
@QueryParameter(name ="%24search")
@javax.annotation.Nullable
@jakarta.annotation.Nullable
public String search;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public void serialize(SerializationWriter writer) {
public Map<String, Object> 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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class IntersectionTypeMock implements Parsable, ComposedTypeWrapper {
private SecondTestEntity _composedType2;
private String _stringValue;
private java.util.List<TestEntity> _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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public void serialize(SerializationWriter writer) {
public Map<String, Object> 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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class UnionTypeMock implements Parsable, ComposedTypeWrapper {
private SecondTestEntity _composedType2;
private String _stringValue;
private java.util.List<TestEntity> _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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public void serialize(SerializationWriter writer) {
public Map<String, Object> 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();
}
}

0 comments on commit 5f7a94a

Please sign in to comment.