Suppress warnings in tests.

Signed-off-by: Aref <aref.behboudi@veltiston.ai>

Closes: #3901
This commit is contained in:
Aref
2025-05-27 09:37:13 +03:30
committed by Mark Paluch
parent 83be337b2c
commit 1dcf910622
4 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ import org.junit.jupiter.params.provider.MethodSource;
*/
class Jsr310JpaConvertersUnitTests {
static Iterable<? extends Object> data() {
static Iterable<?> data() {
return Arrays.asList(new Jsr310JpaConverters.InstantConverter(), //
new Jsr310JpaConverters.LocalDateConverter(), //

View File

@@ -109,7 +109,7 @@ class DeleteSpecificationUnitTests implements Serializable {
assertThat(specification).isNotNull();
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
DeleteSpecification<Object> transferredSpecification = (DeleteSpecification<Object>) deserialize(
serialize(specification));
@@ -125,7 +125,7 @@ class DeleteSpecificationUnitTests implements Serializable {
assertThat(specification).isNotNull();
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
DeleteSpecification<Object> transferredSpecification = (DeleteSpecification<Object>) deserialize(
serialize(specification));

View File

@@ -107,7 +107,7 @@ class PredicateSpecificationUnitTests implements Serializable {
assertThat(specification).isNotNull();
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
PredicateSpecification<Object> transferredSpecification = (PredicateSpecification<Object>) deserialize(
serialize(specification));
@@ -123,7 +123,7 @@ class PredicateSpecificationUnitTests implements Serializable {
assertThat(specification).isNotNull();
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
PredicateSpecification<Object> transferredSpecification = (PredicateSpecification<Object>) deserialize(
serialize(specification));

View File

@@ -109,7 +109,7 @@ class UpdateSpecificationUnitTests implements Serializable {
assertThat(specification).isNotNull();
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
UpdateSpecification<Object> transferredSpecification = (UpdateSpecification<Object>) deserialize(
serialize(specification));
@@ -125,7 +125,7 @@ class UpdateSpecificationUnitTests implements Serializable {
assertThat(specification).isNotNull();
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
UpdateSpecification<Object> transferredSpecification = (UpdateSpecification<Object>) deserialize(
serialize(specification));