File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/org/springframework/data/jpa/domain
test/java/org/springframework/data/jpa/domain Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3939 * @author Daniel Shuy
4040 * @author Sergey Rukin
4141 */
42+ @ FunctionalInterface
4243public interface Specification <T > extends Serializable {
4344
4445 @ Serial long serialVersionUID = 1L ;
Original file line number Diff line number Diff line change 4646 * @author Mark Paluch
4747 * @author Daniel Shuy
4848 */
49- @ SuppressWarnings ("serial" )
5049@ ExtendWith (MockitoExtension .class )
5150@ MockitoSettings (strictness = Strictness .LENIENT )
52- class SpecificationUnitTests implements Serializable {
51+ class SpecificationUnitTests {
5352
5453 private Specification <Object > spec ;
5554 @ Mock (serializable = true ) Root <Object > root ;
@@ -163,7 +162,7 @@ void specificationsShouldBeSerializable() {
163162
164163 assertThat (specification ).isNotNull ();
165164
166- @ SuppressWarnings ("unchecked" )
165+ @ SuppressWarnings ({ "unchecked" , "deprecation" } )
167166 Specification <Object > transferredSpecification = (Specification <Object >) deserialize (serialize (specification ));
168167
169168 assertThat (transferredSpecification ).isNotNull ();
@@ -178,7 +177,7 @@ void complexSpecificationsShouldBeSerializable() {
178177
179178 assertThat (specification ).isNotNull ();
180179
181- @ SuppressWarnings ("unchecked" )
180+ @ SuppressWarnings ({ "unchecked" , "deprecation" } )
182181 Specification <Object > transferredSpecification = (Specification <Object >) deserialize (serialize (specification ));
183182
184183 assertThat (transferredSpecification ).isNotNull ();
You can’t perform that action at this time.
0 commit comments