Clean up / Suppress warnings

This commit is contained in:
Sam Brannen 2023-08-18 12:46:17 +02:00
parent ca118ca4a0
commit 3dcac0cf80
2 changed files with 2 additions and 1 deletions

View File

@ -504,6 +504,7 @@ public class JmsTemplate extends JmsDestinationAccessor implements JmsOperations
* @see #execute(SessionCallback)
* @see #receive
*/
@SuppressWarnings("resource")
@Nullable
public <T> T execute(SessionCallback<T> action, boolean startConnection) throws JmsException {
Assert.notNull(action, "Callback object must not be null");

View File

@ -102,7 +102,7 @@ abstract class AbstractDatabaseClientIntegrationTests {
databaseClient.sql("INSERT INTO legoset (id, name, manual) VALUES(:id, :name, :manual)")
.bindValues(Map.of("id", 42055,
"name", Parameter.from("SCHAUFELRADBAGGER"),
"name", Parameters.in("SCHAUFELRADBAGGER"),
"manual", Parameters.in(Integer.class)))
.fetch().rowsUpdated()
.as(StepVerifier::create)