File tree 2 files changed +4
-4
lines changed
main/java/org/springframework/data/jpa/domain
test/java/org/springframework/data/jpa/domain
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 40
40
* @author Mark Paluch
41
41
* @since 4.0
42
42
*/
43
+ @ FunctionalInterface
43
44
public interface PredicateSpecification <T > extends Serializable {
44
45
45
46
/**
Original file line number Diff line number Diff line change 44
44
* @author Mark Paluch
45
45
* @author Daniel Shuy
46
46
*/
47
- @ SuppressWarnings ("serial" )
48
47
@ ExtendWith (MockitoExtension .class )
49
48
@ MockitoSettings (strictness = Strictness .LENIENT )
50
- class SpecificationUnitTests implements Serializable {
49
+ class SpecificationUnitTests {
51
50
52
51
private Specification <Object > spec ;
53
52
@ Mock (serializable = true ) Root <Object > root ;
@@ -88,7 +87,7 @@ void specificationsShouldBeSerializable() {
88
87
89
88
assertThat (specification ).isNotNull ();
90
89
91
- @ SuppressWarnings ("unchecked" )
90
+ @ SuppressWarnings ({ "unchecked" , "deprecation" } )
92
91
Specification <Object > transferredSpecification = (Specification <Object >) deserialize (serialize (specification ));
93
92
94
93
assertThat (transferredSpecification ).isNotNull ();
@@ -103,7 +102,7 @@ void complexSpecificationsShouldBeSerializable() {
103
102
104
103
assertThat (specification ).isNotNull ();
105
104
106
- @ SuppressWarnings ("unchecked" )
105
+ @ SuppressWarnings ({ "unchecked" , "deprecation" } )
107
106
Specification <Object > transferredSpecification = (Specification <Object >) deserialize (serialize (specification ));
108
107
109
108
assertThat (transferredSpecification ).isNotNull ();
You can’t perform that action at this time.
0 commit comments