Skip to content

Commit 071c298

Browse files
committed
Suppress deprecation warnings in tests in build
1 parent 94af2ca commit 071c298

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-orm/src/test/java/org/springframework/orm/jpa/support/OpenEntityManagerInViewTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -419,6 +419,7 @@ private static class TestTaskExecutor extends SimpleAsyncTaskExecutor {
419419
private final CountDownLatch latch = new CountDownLatch(1);
420420

421421
@Override
422+
@SuppressWarnings("deprecation")
422423
public void execute(Runnable task, long startTimeout) {
423424
Runnable decoratedTask = () -> {
424425
try {

0 commit comments

Comments
 (0)