From 425deb17f730ff7fda0551bfd6a1b81a8462cdba Mon Sep 17 00:00:00 2001 From: ijilsmateus <48282168+ijilsmateus@users.noreply.github.com> Date: Tue, 7 Oct 2025 15:28:11 +0100 Subject: [PATCH] [Postgres] Unnecessary operation Unnecessary operations removed, since they are executed in the "finally" block. --- .../springframework/content/jpa/io/PostgresBlobResource.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-content-jpa/src/main/java/internal/org/springframework/content/jpa/io/PostgresBlobResource.java b/spring-content-jpa/src/main/java/internal/org/springframework/content/jpa/io/PostgresBlobResource.java index 40bcacbe1..b792d3717 100644 --- a/spring-content-jpa/src/main/java/internal/org/springframework/content/jpa/io/PostgresBlobResource.java +++ b/spring-content-jpa/src/main/java/internal/org/springframework/content/jpa/io/PostgresBlobResource.java @@ -98,8 +98,6 @@ public void delete() rs = stmt.executeQuery(sql); if (!rs.next()) { try { - rs.close(); - stmt.close(); DataSourceUtils.releaseConnection(conn, ds); return; } catch (SQLException sqle) {