[java-idp-integration-tests] branch main updated: Cleanup type warnings

Tom Zeller tzeller at dragonacea.biz
Wed Jul 10 00:02:19 UTC 2024


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

tzeller pushed a commit to branch main
in repository java-idp-integration-tests.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=a31a4445bc00eb139ceb19b7247291695239a08d

The following commit(s) were added to refs/heads/main by this push:
     new a31a444  Cleanup type warnings
a31a444 is described below

commit a31a4445bc00eb139ceb19b7247291695239a08d
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Jul 9 19:02:09 2024 -0500

    Cleanup type warnings
---
 .../tests/clientstorage/SimpleStorageRecordSerializer.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/java/net/shibboleth/idp/integration/tests/clientstorage/SimpleStorageRecordSerializer.java b/src/test/java/net/shibboleth/idp/integration/tests/clientstorage/SimpleStorageRecordSerializer.java
index 232bdcf..13f19d8 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/clientstorage/SimpleStorageRecordSerializer.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/clientstorage/SimpleStorageRecordSerializer.java
@@ -46,7 +46,7 @@ import net.shibboleth.shared.component.AbstractInitializableComponent;
  * A simple {@link StorageRecord} serializer.
  */
 public class SimpleStorageRecordSerializer extends AbstractInitializableComponent
-        implements StorageSerializer<StorageRecord> {
+        implements StorageSerializer<StorageRecord<?>> {
 
     /** JSON generator factory. */
     @Nonnull private final JsonGeneratorFactory generatorFactory;
@@ -62,7 +62,7 @@ public class SimpleStorageRecordSerializer extends AbstractInitializableComponen
     }
 
     /** {@inheritDoc} */
-    public String serialize(@Nonnull final StorageRecord instance) throws IOException {
+    public String serialize(@Nonnull final StorageRecord<?> instance) throws IOException {
 
         final StringWriter sink = new StringWriter();
         final JsonGenerator gen = generatorFactory.createGenerator(sink);
@@ -80,7 +80,7 @@ public class SimpleStorageRecordSerializer extends AbstractInitializableComponen
     }
 
     /** {@inheritDoc} */
-    @Nonnull public StorageRecord deserialize(final long version, @Nonnull @NotEmpty final String context,
+    @Nonnull public StorageRecord<?> deserialize(final long version, @Nonnull @NotEmpty final String context,
             @Nonnull @NotEmpty final String key, @Nonnull @NotEmpty final String value, @Nullable Long expiration)
                     throws IOException {
         final VersionableStorageRecord record = new VersionableStorageRecord(value, expiration);
@@ -97,7 +97,7 @@ public class SimpleStorageRecordSerializer extends AbstractInitializableComponen
      * @return a deserialized object
      * @throws IOException if an error occurs
      */
-    @Nonnull public StorageRecord deserialize(@Nonnull @NotEmpty final String context,
+    @Nonnull public StorageRecord<?> deserialize(@Nonnull @NotEmpty final String context,
             @Nonnull @NotEmpty final String key, @Nonnull final String serialized) throws IOException {
         final JsonReader reader = readerFactory.createReader(new StringReader(serialized));
         final JsonStructure st = reader.read();
@@ -119,7 +119,7 @@ public class SimpleStorageRecordSerializer extends AbstractInitializableComponen
     /**
      * Exposes mutation of {@link StorageRecord} properties including version.
      */
-    private class VersionableStorageRecord extends MutableStorageRecord {
+    private class VersionableStorageRecord extends MutableStorageRecord<Object> {
 
         /**
          * Constructor.

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


More information about the commits mailing list