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 39
39
* @author Daniel Shuy
40
40
* @author Sergey Rukin
41
41
*/
42
+ @ FunctionalInterface
42
43
public interface Specification <T > extends Serializable {
43
44
44
45
@ Serial long serialVersionUID = 1L ;
Original file line number Diff line number Diff line change 46
46
* @author Mark Paluch
47
47
* @author Daniel Shuy
48
48
*/
49
- @ SuppressWarnings ("serial" )
50
49
@ ExtendWith (MockitoExtension .class )
51
50
@ MockitoSettings (strictness = Strictness .LENIENT )
52
- class SpecificationUnitTests implements Serializable {
51
+ class SpecificationUnitTests {
53
52
54
53
private Specification <Object > spec ;
55
54
@ Mock (serializable = true ) Root <Object > root ;
@@ -163,7 +162,7 @@ void specificationsShouldBeSerializable() {
163
162
164
163
assertThat (specification ).isNotNull ();
165
164
166
- @ SuppressWarnings ("unchecked" )
165
+ @ SuppressWarnings ({ "unchecked" , "deprecation" } )
167
166
Specification <Object > transferredSpecification = (Specification <Object >) deserialize (serialize (specification ));
168
167
169
168
assertThat (transferredSpecification ).isNotNull ();
@@ -178,7 +177,7 @@ void complexSpecificationsShouldBeSerializable() {
178
177
179
178
assertThat (specification ).isNotNull ();
180
179
181
- @ SuppressWarnings ("unchecked" )
180
+ @ SuppressWarnings ({ "unchecked" , "deprecation" } )
182
181
Specification <Object > transferredSpecification = (Specification <Object >) deserialize (serialize (specification ));
183
182
184
183
assertThat (transferredSpecification ).isNotNull ();
You can’t perform that action at this time.
0 commit comments