[java-opensaml] branch maint-5.1 updated: OSJ-431 - Eclipse compiler breaking on StorageRecordTranscoder generic
Scott Cantor
cantor.2 at osu.edu
Wed Aug 6 14:46:21 UTC 2025
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-5.1
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=37786047ede42b7795094c9b87ed1c5f7b6afa8d
The following commit(s) were added to refs/heads/maint-5.1 by this push:
new 37786047e OSJ-431 - Eclipse compiler breaking on StorageRecordTranscoder generic
37786047e is described below
commit 37786047ede42b7795094c9b87ed1c5f7b6afa8d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Apr 4 12:35:32 2025 -0400
OSJ-431 - Eclipse compiler breaking on StorageRecordTranscoder generic
https://shibboleth.atlassian.net/browse/OSJ-431
---
.../org/opensaml/storage/impl/memcached/StorageRecordTranscoder.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/memcached/StorageRecordTranscoder.java b/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/memcached/StorageRecordTranscoder.java
index 3353a84f2..fc5a8fbcc 100644
--- a/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/memcached/StorageRecordTranscoder.java
+++ b/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/memcached/StorageRecordTranscoder.java
@@ -46,6 +46,7 @@ public class StorageRecordTranscoder implements Transcoder<MemcachedStorageRecor
}
/** {@inheritDoc} */
+ @SuppressWarnings("rawtypes")
public MemcachedStorageRecord<?> decode(final CachedData d) {
final byte[] bytes = d.getData();
final String value = new String(bytes, 8, bytes.length - 8, StandardCharsets.UTF_8);
@@ -53,7 +54,8 @@ public class StorageRecordTranscoder implements Transcoder<MemcachedStorageRecor
(((long) bytes[2] & 0xff) << 40) | (((long) bytes[3] & 0xff) << 32) |
(((long) bytes[4] & 0xff) << 24) | (((long) bytes[5] & 0xff) << 16) |
(((long) bytes[6] & 0xff) << 8) | ((long) bytes[7] & 0xff);
- return new MemcachedStorageRecord<>(value, exp == 0 ? null : exp);
+ // Eclipse in 2025 decided using <> doesn't compile, see OSJ-431.
+ return new MemcachedStorageRecord(value, exp == 0 ? null : exp);
}
/** {@inheritDoc} */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list