[java-plugin-storage-jdbc] branch main updated: Checkstyle nits.

Codeberg noreply at shibboleth.net
Wed Jun 10 16:44:50 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-plugin-storage-jdbc.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-storage-jdbc/commit/278f70f1b48312513f822dbcbb447b457afc9893

The following commit(s) were added to refs/heads/main by this push:
     new 278f70f  Checkstyle nits.
278f70f is described below

commit 278f70f1b48312513f822dbcbb447b457afc9893
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Jun 10 12:44:36 2026 -0400

    Checkstyle nits.
---
 .../shibboleth/plugin/storage/jdbc/impl/JDBCStorageService.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/jdbc-storage-impl/src/main/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageService.java b/jdbc-storage-impl/src/main/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageService.java
index e861923..489b4ae 100644
--- a/jdbc-storage-impl/src/main/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageService.java
+++ b/jdbc-storage-impl/src/main/java/net/shibboleth/plugin/storage/jdbc/impl/JDBCStorageService.java
@@ -126,7 +126,8 @@ public final class JDBCStorageService extends AbstractStorageService
             "SELECT id FROM StorageRecords WHERE context=? AND id like ? AND (expires IS NULL OR expires > ?)";
 
     /** Default timeout of SQL queries. */
-    static final Duration DEFAULT_QUERY_TIMEOUT = Duration.ofSeconds(5);
+    @SuppressWarnings("null")
+    @Nonnull static final Duration DEFAULT_QUERY_TIMEOUT = Duration.ofSeconds(5);
 
     /** Class logger. */
     @Nonnull private final Logger log = LoggerFactory.getLogger(JDBCStorageService.class);
@@ -258,7 +259,6 @@ public final class JDBCStorageService extends AbstractStorageService
      * Set the defaults so that they can be over-ridden by Spring.
      */
     public JDBCStorageService() {
-        assert DEFAULT_QUERY_TIMEOUT != null;
         queryTimeout = DEFAULT_QUERY_TIMEOUT;
         setContextSize(JDBCStorageRecord.CONTEXT_SIZE);
         setKeySize(JDBCStorageRecord.KEY_SIZE);
@@ -457,7 +457,7 @@ public final class JDBCStorageService extends AbstractStorageService
      * @param what the timeout to set
      * @since 2.1.0
      */
-    public void setQueryTimeout(@Nonnull Duration what) {
+    public void setQueryTimeout(@Nonnull final Duration what) {
         queryTimeout = Constraint.isNotNull(what, "QueryTimeout should be non null");
     }
 
@@ -1249,7 +1249,7 @@ public final class JDBCStorageService extends AbstractStorageService
         @Nonnull private final Connection connection;
 
         /** The lock we may or may not have set up. */
-        @Nullable private  final Lock threadLock;
+        @Nullable private final Lock threadLock;
         
         /** Was this created autocommit? */
         private final boolean isAutoCommit;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list