Suppress warnings in tests.
Signed-off-by: Aref <aref.behboudi@veltiston.ai> Closes: #3901
This commit is contained in:
@@ -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(), //
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user