Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Refine deprecation warnings.

See #3452
  • Loading branch information
mp911de committed Jan 31, 2025
1 parent aea1a03 commit 4db0ac2
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @author Mark Paluch
* @author Daniel Shuy
*/
@SuppressWarnings("removal")
@ExtendWith(MockitoExtension.class)
@MockitoSettings(strictness = Strictness.LENIENT)
class SpecificationUnitTests {
Expand Down Expand Up @@ -119,7 +120,7 @@ void orConcatenatesNullSpecToSpec() {
}

@Test // GH-1943
public void allOfConcatenatesNull() {
void allOfConcatenatesNull() {

Specification<Object> specification = Specification.allOf(null, spec, null);

Expand All @@ -128,7 +129,7 @@ public void allOfConcatenatesNull() {
}

@Test // GH-1943
public void anyOfConcatenatesNull() {
void anyOfConcatenatesNull() {

Specification<Object> specification = Specification.anyOf(null, spec, null);

Expand All @@ -137,7 +138,7 @@ public void anyOfConcatenatesNull() {
}

@Test // GH-1943
public void emptyAllOfReturnsEmptySpecification() {
void emptyAllOfReturnsEmptySpecification() {

Specification<Object> specification = Specification.allOf();

Expand All @@ -146,7 +147,7 @@ public void emptyAllOfReturnsEmptySpecification() {
}

@Test // GH-1943
public void emptyAnyOfReturnsEmptySpecification() {
void emptyAnyOfReturnsEmptySpecification() {

Specification<Object> specification = Specification.anyOf();

Expand All @@ -162,7 +163,7 @@ void specificationsShouldBeSerializable() {

assertThat(specification).isNotNull();

@SuppressWarnings({"unchecked", "deprecation"})
@SuppressWarnings({ "unchecked", "deprecation" })
Specification<Object> transferredSpecification = (Specification<Object>) deserialize(serialize(specification));

assertThat(transferredSpecification).isNotNull();
Expand All @@ -177,7 +178,7 @@ void complexSpecificationsShouldBeSerializable() {

assertThat(specification).isNotNull();

@SuppressWarnings({"unchecked", "deprecation"})
@SuppressWarnings({ "unchecked", "deprecation" })
Specification<Object> transferredSpecification = (Specification<Object>) deserialize(serialize(specification));

assertThat(transferredSpecification).isNotNull();
Expand Down

0 comments on commit 4db0ac2

Please sign in to comment.