[java-shib-attribute] branch main updated: Fix some warnings.

Codeberg noreply at shibboleth.net
Wed Aug 26 16:37:07 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-shib-attribute.

View the commit online:
https://codeberg.org/Shibboleth/java-shib-attribute/commit/a36409693137702ef58271136f3e1d21405ce052

The following commit(s) were added to refs/heads/main by this push:
     new a36409693 Fix some warnings.
a36409693 is described below

commit a36409693137702ef58271136f3e1d21405ce052
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Aug 26 12:36:55 2026 -0400

    Fix some warnings.
---
 .../resolver/impl/AttributeResolverServiceGaugeSet.java       | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverServiceGaugeSet.java b/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverServiceGaugeSet.java
index a06bb364f..52367b674 100644
--- a/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverServiceGaugeSet.java
+++ b/shib-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverServiceGaugeSet.java
@@ -179,13 +179,13 @@ public class AttributeResolverServiceGaugeSet extends ReloadableServiceGaugeSet<
         }
     }
 
-    /** A Plain Old Java Object to encapsulate the counts from a {@link CacheStats} */
+    /** A Plain Old Java Object to encapsulate the counts from a {@link CacheStats}. */
     public static class CacheStatsPojo {
         /**
          * The number of times {@link Cache} lookup methods have returned a cached value.
          * See {@link CacheStats#hitCount()}
          */
-        final long hitCount;
+        final public long hitCount;
         /**
          * The the number of times {@link Cache} lookup methods have returned an uncached (newly loaded) value, or null.
          * See {@link CacheStats#missCount()}
@@ -209,9 +209,9 @@ public class AttributeResolverServiceGaugeSet extends ReloadableServiceGaugeSet<
         /**
          * Constructor.
          *
-         * @param s what to return.
+         * @param s what to copy
          */
-        CacheStatsPojo(final CacheStats s) {
+        CacheStatsPojo(@Nonnull final CacheStats s) {
             hitCount = s.hitCount();
             missCount = s.missCount();
             loadExceptionCount = s.loadExceptionCount();
@@ -219,4 +219,5 @@ public class AttributeResolverServiceGaugeSet extends ReloadableServiceGaugeSet<
             evictionCount = s.evictionCount();
         }
     }
-}
+    
+}
\ No newline at end of file

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


More information about the commits mailing list