[java-plugin-storage-jdbc] 02/03: Re-indent Untabify

Rod Widdowson rdw at steadingsoftware.com
Tue May 24 16:02:29 UTC 2022


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

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

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-storage-jdbc.git;a=commit;h=3ccd3206b7fbbc59b7db4e9c55569c2bd10d3faf

commit 3ccd3206b7fbbc59b7db4e9c55569c2bd10d3faf
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon May 23 17:16:10 2022 +0100

    Re-indent Untabify
---
 .../storage/jdbc/impl/JDBCStorageService.java      | 130 ++++++++++-----------
 1 file changed, 65 insertions(+), 65 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 da00224..8ce8f2a 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
@@ -67,7 +67,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** The SQL to get all the records for a specific context.*/
     static final String DEFAULT_READ_ALL_BY_CONTEXT_SQL =
-            "SELECT id, expires, value, version FROM StorageRecords WHERE context = ?";
+        "SELECT id, expires, value, version FROM StorageRecords WHERE context = ?";
 
     /** The SQL to get check whether this record already exists and is unexpired prior to a create.*/
     static final String DEFAULT_PRE_CREATE_QUERY_SQL = "SELECT expires FROM StorageRecords WHERE context =? AND id=?";
@@ -77,19 +77,19 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** The SQL to update an expired record as part of a create. */
     static final String DEFAULT_CREATE_UPDATE_RECORD_SQL =
-            "UPDATE StorageRecords SET value=?, version=1, expires=? WHERE context=? AND id=?";
+        "UPDATE StorageRecords SET value=?, version=1, expires=? WHERE context=? AND id=?";
 
     /** The SQL to read a single record.*/
     static final String DEFAULT_READ_RECORD_SQL =
-            "SELECT version, expires, value FROM StorageRecords WHERE context =? AND id=?";
+        "SELECT version, expires, value FROM StorageRecords WHERE context =? AND id=?";
 
     /** The SQL to check whether a record exists prior to updating it. */
     static final String DEFAULT_PRE_UPDATE_QUERY_SQL =
-            "SELECT version, expires FROM StorageRecords WHERE context =? AND id=?";
+        "SELECT version, expires FROM StorageRecords WHERE context =? AND id=?";
 
     /** The SQL to update a record. */
     static final String DEFAULT_UPDATE_RECORD_SQL =
-            "UPDATE StorageRecords SET value=?, version=?, expires=? WHERE context=? AND id=?";
+        "UPDATE StorageRecords SET value=?, version=?, expires=? WHERE context=? AND id=?";
 
     /** The SQL to check whether a record exists prior to deleting it.*/
     static final String DEFAULT_PRE_DELETE_QUERY_SQL ="SELECT version FROM StorageRecords WHERE context =? AND id=?";
@@ -102,11 +102,11 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** The SQL to delete all records by specified context and expiration.  */
     static final String DEFAULT_DELETE_BY_CONTEXT_EXPIRED_SQL =
-            "DELETE FROM StorageRecords WHERE context = ? AND expires < ?";
+        "DELETE FROM StorageRecords WHERE context = ? AND expires < ?";
 
     /** The SQL to update the expiration for a given context.  */
     static final String DEFAULT_UPDATE_EXPIRES_BY_CONTEXT_SQL =
-            "UPDATE StorageRecords SET expires = ? WHERE context = ? AND expires > ? ";
+        "UPDATE StorageRecords SET expires = ? WHERE context = ? AND expires > ? ";
 
     /** The SQL to delete a given context.  */
     static final String DEFAULT_DELETE_BY_CONTEXT_SQL = "DELETE FROM StorageRecords WHERE context = ? ";
@@ -232,11 +232,11 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setTransactionIsolation(int what) {
         Constraint.isTrue(what == Connection.TRANSACTION_NONE ||
-          what == Connection.TRANSACTION_READ_COMMITTED || what == Connection.TRANSACTION_READ_UNCOMMITTED ||
-          what == Connection.TRANSACTION_REPEATABLE_READ || what == Connection.TRANSACTION_SERIALIZABLE,
-          "Invalid value for TransactionIsolation");
+                          what == Connection.TRANSACTION_READ_COMMITTED || what == Connection.TRANSACTION_READ_UNCOMMITTED ||
+                          what == Connection.TRANSACTION_REPEATABLE_READ || what == Connection.TRANSACTION_SERIALIZABLE,
+                          "Invalid value for TransactionIsolation");
         transactionIsolation = what;
-        }
+    }
 
     /** Set the {@link DataSource}.
      * @param source what to set.
@@ -258,7 +258,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setReadContextsSQL(@Nonnull @NotEmpty final String what) {
         readContextsSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "Read Context SQL should be non-null and non empty");
+                                               "Read Context SQL should be non-null and non empty");
     }
     
     /** SQL to read all contexts.
@@ -266,7 +266,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setReadAllByContextSQL(@Nonnull @NotEmpty final String what) {
         readAllByContextSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "Read All By Context SQL should be non-null and non empty");
+                                                   "Read All By Context SQL should be non-null and non empty");
     }
 
     /** SQL to read all contexts.
@@ -274,7 +274,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setReadAllSQL(@Nonnull @NotEmpty final String what) {
         readAllSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "Read All SQL should be non-null and non empty");
+                                          "Read All SQL should be non-null and non empty");
     }
 
     /** Set the SQL to get check whether this record already exists and is unexpired prior to a create.
@@ -284,7 +284,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setPreCreateQuerySQL(@Nonnull @NotEmpty final String what) {
         preCreateQuerySQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "PreCreateQuerySQL should be non-null and non empty");
+                                                 "PreCreateQuerySQL should be non-null and non empty");
     }
 
     /** Set the SQL to create a new record (transactional with {@link #preCreateQuerySQL}.
@@ -292,7 +292,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setCreateCreateRecordSQL(@Nonnull @NotEmpty final String what) {
         createCreateRecordSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "CreateCreateRecordSQL should be non-null and non empty");
+                                                     "CreateCreateRecordSQL should be non-null and non empty");
     }
 
     /** Set the SQL to update an expired record as part of a create (transactional with {@link #preCreateQuerySQL}.
@@ -300,7 +300,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setCreateUpdateRecordSQL(@Nonnull @NotEmpty final String what) {
         createUpdateRecordSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "CreateUpdateRecordSQL should be non-null and non empty");
+                                                     "CreateUpdateRecordSQL should be non-null and non empty");
     }
 
     /** Set the SQL to read a single record.
@@ -308,7 +308,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setReadRecordSQL(@Nonnull @NotEmpty final String what) {
         readRecordSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "ReadRecordSQL should be non-null and non empty");
+                                             "ReadRecordSQL should be non-null and non empty");
     }
 
     /** Set the SQL to get check whether this record already exists and is unexpired prior to an update.
@@ -316,7 +316,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setPreUpdateQuerySQL(@Nonnull @NotEmpty final String what) {
         preUpdateQuerySQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "PreUpdateQuerySQL should be non-null and non empty");
+                                                 "PreUpdateQuerySQL should be non-null and non empty");
     }
 
     /** Set the SQL to update a record.  Transactional with {@link #preUpdateQuerySQL}
@@ -324,7 +324,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setUpdateRecordSQL(@Nonnull @NotEmpty final String what) {
         updateRecordSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "UpdateRecordSQL should be non-null and non empty");
+                                               "UpdateRecordSQL should be non-null and non empty");
     }
 
     /** Set the SQL to check whether a record exists prior to deleting it.
@@ -332,7 +332,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setPreDeleteQuerySQL(final String what) {
         preDeleteQuerySQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "PreDeleteSQL should be non-null and non empty");
+                                                 "PreDeleteSQL should be non-null and non empty");
     }
 
     /** Set the SQL to delete a record. Transactional with {@link #preDeleteQuerySQL}.
@@ -340,7 +340,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setDeleteRecordSQL(final String what) {
         deleteRecordSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "DeleteRecordSQL should be non-null and non empty");
+                                               "DeleteRecordSQL should be non-null and non empty");
     }
 
     /** Set the SQL to delete expired record.
@@ -349,7 +349,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setDeleteByExpiredSQL(final String what) {
         deleteByExpiredSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "DeleteByExpiredSQL should be non-null and non empty");
+                                                  "DeleteByExpiredSQL should be non-null and non empty");
     }
 
     /** Set the SQL to delete expired record with specified context.
@@ -358,7 +358,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setDeleteByContextExpiredSQL(final String what) {
         deleteByContextExpiredSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "DeleteByContextExpiredSQL should be non-null and non empty");
+                                                         "DeleteByContextExpiredSQL should be non-null and non empty");
     }
 
     /** Set the SQL to update the expiration of a record specified by context.
@@ -366,7 +366,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setUpdateExpiresByContextSQL(final String what) {
         updateExpiresByContextSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "UpdateExpiresByContextSQL should be non-null and non empty");
+                                                         "UpdateExpiresByContextSQL should be non-null and non empty");
     }
 
     /** Set the SQL to Delete a specified Context.
@@ -374,7 +374,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     public void setDeleteByContextSQL(final String what) {
         deleteByContextSQL = Constraint.isNotNull(StringSupport.trimOrNull(what),
-                "DeleteByContextSQL should be non-null and non empty");
+                                                  "DeleteByContextSQL should be non-null and non empty");
     }
 
     /** {@inheritDoc} */
@@ -427,7 +427,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 final String value = results.getString(4);
                 final Long version = results.getLong(5);
                 log.trace("Record: Context = '{}', Id = '{}', value = '{}', verion = '{}', expires = '{}'",
-                        context, id, value, version, expires == null ? "<never>": expires);
+                          context, id, value, version, expires == null ? "<never>": expires);
                 result.add(new JDBCStorageRecord<>(value, expires, version));
             }
             return result;
@@ -447,10 +447,10 @@ public final class JDBCStorageService extends AbstractStorageService implements
      * @throws IOException if errors occur in the read process
      */
     @Nonnull @NonnullElements protected List<?> readAll(@Nonnull @NotEmpty final String context)
-            throws IOException {
+        throws IOException {
         final List<JDBCStorageRecord<?>> result = new ArrayList<>();
         Constraint.isNotEmpty(Constraint.isNotNull(context, "ReadAll(String): context must not be null"),
-                             "ReadAll(String): context must not be empty");
+                              "ReadAll(String): context must not be empty");
         try (final Connection connection = getConnection(true)) {
             log.trace("ReadAll:: '{}' 1: '{}'  ", readAllByContextSQL, context);
             final PreparedStatement query = connection.prepareStatement(readAllByContextSQL);
@@ -462,7 +462,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 final String value = results.getString(3);
                 final Long version = results.getLong(4);
                 log.trace("Record: Id = '{}', value = '{}', verion = '{}', expires = '{}'",
-                        id, value, version, expires == null ? "<never>": expires);
+                          id, value, version, expires == null ? "<never>": expires);
                 result.add(new JDBCStorageRecord<>(value, expires, version));
             }
             return result;
@@ -474,13 +474,13 @@ public final class JDBCStorageService extends AbstractStorageService implements
     }
 
     /** {@inheritDoc} */
- // Checkstyle: CyclomaticComplexity OFF
+    // Checkstyle: CyclomaticComplexity OFF
     public boolean create(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key,
-            @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException {
+                          @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException {
         Constraint.isNotEmpty(Constraint.isNotNull(context, "create: context must not be null"),
-                "create: context must not be empty");
+                              "create: context must not be empty");
         Constraint.isNotEmpty(Constraint.isNotNull(value, "create: value must not be null"),
-                "create: value must not be empty");
+                              "create: value must not be empty");
         int retries = transactionRetry;
         while(true) {
             try (final Connection connection = getConnection(false)) {
@@ -496,7 +496,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 final ResultSet resultSet = query.executeQuery();
                 if (!resultSet.next()) {
                     log.trace("Create [Insert]:: '{}'  1: '{}' ; 2: '{}' ; 3 '{}' ; 4 '{}'", createCreateRecordSQL, 
-                            context, key, expiration, value);
+                              context, key, expiration, value);
                     final PreparedStatement insert = connection.prepareStatement(createCreateRecordSQL);
                     insert.setString(1, context);
                     insert.setString(2, key);
@@ -513,7 +513,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 }
                 final PreparedStatement update = connection.prepareStatement(createUpdateRecordSQL);
                 log.trace("Create [Update]:: '{}'  1: '{}' ; 2: '{}' ; 3 '{}' ; 4 '{}'", createUpdateRecordSQL, 
-                        value, expiration, context, key);
+                          value, expiration, context, key);
                 update.setString(1, value);
                 setExpires(update, 2, expiration);
                 update.setString(3,context);
@@ -546,13 +546,13 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** {@inheritDoc} */
     @Override @Nullable public <T> StorageRecord<T> read(@Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key) throws IOException {
+                                                         @Nonnull @NotEmpty final String key) throws IOException {
         return this.<T>readImpl(context, key, null).getSecond();
     }
 
     /** {@inheritDoc} */
     @Override @Nonnull public <T> Pair<Long, StorageRecord<T>> read(@Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key, @Positive final long version) throws IOException {
+                                                                    @Nonnull @NotEmpty final String key, @Positive final long version) throws IOException {
         return readImpl(context, key, version);
     }
     
@@ -570,12 +570,12 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     // Checkstyle: CyclomaticComplexity OFF
     @Nonnull protected <T> Pair<Long, StorageRecord<T>> readImpl(@Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key, @Positive @Nullable final Long version) throws IOException {
+                                                                 @Nonnull @NotEmpty final String key, @Positive @Nullable final Long version) throws IOException {
 
         Constraint.isNotEmpty(Constraint.isNotNull(context, "read: context must not be null"),
-                "read: context must not be empty");
+                              "read: context must not be empty");
         Constraint.isNotEmpty(Constraint.isNotNull(context, "read: key must not be null"),
-                "read: key must not be empty");
+                              "read: key must not be empty");
 
         int retries = transactionRetry;
         while(true) {
@@ -593,7 +593,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 final Long returnedExpires = getExpires(resultSet, 2);
                 final String returnedValue = resultSet.getString(3);
                 log.trace("Considering Version '{}', Expires '{}', Value '{}'",
-                        returnedVersion, returnedValue, returnedExpires);
+                          returnedVersion, returnedValue, returnedExpires);
                 if (returnedExpires != null && System.currentTimeMillis() >= returnedExpires) {
                     log.debug("Read failed, key '{}' expired in context '{}'", key, context);
                     return new Pair<>();
@@ -606,7 +606,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                     log.error("Multiple values returned?");
                 }
                 final MutableStorageRecord<T> result =
-                        new JDBCStorageRecord<>(returnedValue, returnedExpires, returnedVersion);
+                    new JDBCStorageRecord<>(returnedValue, returnedExpires, returnedVersion);
                 return new Pair<>(version, result);
             } catch (final SQLException e) {
                 boolean retry = false;
@@ -634,7 +634,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** {@inheritDoc} */
     @Override public boolean update(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key,
-            @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException {
+                                    @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException {
         try {
             return updateImpl(null, context, key, value, expiration) != null;
         } catch (final VersionMismatchException e) {
@@ -644,15 +644,15 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** {@inheritDoc} */
     @Override @Nullable public Long updateWithVersion(@Positive final long version,
-            @Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key,
-            @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException,
-            VersionMismatchException {
+                                                      @Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key,
+                                                      @Nonnull @NotEmpty final String value, @Nullable @Positive final Long expiration) throws IOException,
+                                                                                                                                               VersionMismatchException {
         return updateImpl(version, context, key, value, expiration);
     }
 
     /** {@inheritDoc} */
     @Override public boolean updateExpiration(@Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key, @Nullable @Positive final Long expiration) throws IOException {
+                                              @Nonnull @NotEmpty final String key, @Nullable @Positive final Long expiration) throws IOException {
         try {
             return updateImpl(null, context, key, null, expiration) != null;
         } catch (final VersionMismatchException e) {
@@ -675,15 +675,15 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     // Checkstyle: CyclomaticComplexity OFF
     @Nullable protected Long updateImpl(@Nullable final Long version, @Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key, @Nonnull @NotEmpty final String value,
-            @Nullable @Positive final Long expires) throws IOException, VersionMismatchException {
+                                        @Nonnull @NotEmpty final String key, @Nonnull @NotEmpty final String value,
+                                        @Nullable @Positive final Long expires) throws IOException, VersionMismatchException {
         
         Constraint.isNotEmpty(Constraint.isNotNull(context, "update: context must not be null"),
-                "update: context must not be empty");
+                              "update: context must not be empty");
         Constraint.isNotEmpty(Constraint.isNotNull(key, "update: key must not be null"),
-                "update: key must not be empty");
+                              "update: key must not be empty");
         Constraint.isNotEmpty(Constraint.isNotNull(value, "update: value must not be null"),
-                "update: value must not be empty");
+                              "update: value must not be empty");
         int retries = transactionRetry;
         while (true) {
             try (Connection connection = getConnection(false)) {
@@ -712,7 +712,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 final PreparedStatement updateStmnt = connection.prepareStatement(updateRecordSQL);
                 final Long newVersion = Long.valueOf(returnedVersion + 1);
                 log.trace("Update [Update]:: '{}':  1: '{}' ; 2: '{}' ; 3: '{}' ; 4: '{}' ; 5: '{}'", updateRecordSQL,
-                        value, newVersion, expires, context, key);
+                          value, newVersion, expires, context, key);
                 updateStmnt.setString(1, value);
                 updateStmnt.setLong(2, newVersion);
                 setExpires(updateStmnt, 3, expires);
@@ -747,13 +747,13 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** {@inheritDoc} */
     @Override public boolean deleteWithVersion(@Positive final long version, @Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key) throws IOException, VersionMismatchException {
+                                               @Nonnull @NotEmpty final String key) throws IOException, VersionMismatchException {
         return deleteImpl(version, context, key);
     }
 
     /** {@inheritDoc} */
     @Override public boolean delete(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key)
-            throws IOException {
+        throws IOException {
         try {
             return deleteImpl(null, context, key);
         } catch (final VersionMismatchException e) {
@@ -774,11 +774,11 @@ public final class JDBCStorageService extends AbstractStorageService implements
      */
     // Checkstyle: CyclomaticComplexity OFF
     protected boolean deleteImpl(@Nullable @Positive final Long version, @Nonnull @NotEmpty final String context,
-            @Nonnull @NotEmpty final String key) throws IOException, VersionMismatchException {
+                                 @Nonnull @NotEmpty final String key) throws IOException, VersionMismatchException {
         Constraint.isNotEmpty(Constraint.isNotNull(context, "delete: context must not be null"),
-                "delete: context must not be empty");
+                              "delete: context must not be empty");
         Constraint.isNotEmpty(Constraint.isNotNull(context, "delete: key must not be null"),
-                "delete: key must not be empty");
+                              "delete: key must not be empty");
         Constraint.isTrue(version == null || version > 0, "delete: version should be null of > 0");
         int retries = transactionRetry;
         while (true) {
@@ -871,7 +871,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
     /** {@inheritDoc} */
     public void reap(@Nonnull @NotEmpty final String context) throws IOException {
         Constraint.isNotEmpty(Constraint.isNotNull(context, "reap: context must not be null"),
-                "reap: context must not be empty");
+                              "reap: context must not be empty");
         int retries = transactionRetry;
         while (true) {
             try (Connection connection = getConnection(true)) {
@@ -907,9 +907,9 @@ public final class JDBCStorageService extends AbstractStorageService implements
 
     /** {@inheritDoc} */
     public void updateContextExpiration(@Nonnull @NotEmpty final String context, @Nullable final Long  expires)
-            throws IOException {
+        throws IOException {
         Constraint.isNotEmpty(Constraint.isNotNull(context, "updateContextExpiration: context must not be null"),
-                "updateContextExpiration: context must not be empty");
+                              "updateContextExpiration: context must not be empty");
         int retries = transactionRetry;
         while (true) {
             try (Connection connection = getConnection(true)) {
@@ -919,7 +919,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
                 final Long newExpires = System.currentTimeMillis();
                 setExpires(updateStmnt, 3, newExpires);
                 log.trace("UpdateContextExpiration:: '{}':  1: '{}' ; 2: '{}' ; 3: '{}' ;",
-                        updateExpiresByContextSQL, expires, context, newExpires);
+                          updateExpiresByContextSQL, expires, context, newExpires);
                 updateStmnt.execute();
                 connection.commit();
                 return;
@@ -948,7 +948,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
     /** {@inheritDoc} */
     public void deleteContext(@Nonnull @NotEmpty final String context) throws IOException {
         Constraint.isNotEmpty(Constraint.isNotNull(context, "deleteContext: context must not be null"),
-                "deleteContext: context must not be empty");
+                              "deleteContext: context must not be empty");
         int retries = transactionRetry;
         while (true) {
             try (Connection connection = getConnection(true)) {
@@ -1022,7 +1022,7 @@ public final class JDBCStorageService extends AbstractStorageService implements
      * @throws SQLException 
      */
     private static void setExpires(@Nonnull final PreparedStatement stmnt,
-            final int column, final @Nullable Long expires) throws SQLException {
+                                   final int column, final @Nullable Long expires) throws SQLException {
         if (expires == null) {
             stmnt.setNull(column, Types.BIGINT);
         } else {

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


More information about the commits mailing list