[java-shib-shared] branch main updated: JSSH-81 - ClassCriterion does not override Object methods
Codeberg
noreply at shibboleth.net
Mon Aug 31 13:23:06 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-shared.
View the commit online:
https://codeberg.org/Shibboleth/java-shib-shared/commit/0e706522ef52679cba18aa0f73f741bbe09ebf0e
The following commit(s) were added to refs/heads/main by this push:
new 0e706522 JSSH-81 - ClassCriterion does not override Object methods
0e706522 is described below
commit 0e706522ef52679cba18aa0f73f741bbe09ebf0e
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Aug 31 09:22:56 2026 -0400
JSSH-81 - ClassCriterion does not override Object methods
https://shibboleth.atlassian.net/browse/JSSH-81
---
.../shibboleth/shared/resolver/ClassCriterion.java | 34 ++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/resolver/ClassCriterion.java b/shib-support/src/main/java/net/shibboleth/shared/resolver/ClassCriterion.java
index e8e2ba1f..c85d4ac6 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/resolver/ClassCriterion.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/resolver/ClassCriterion.java
@@ -48,5 +48,39 @@ public class ClassCriterion<T> implements Criterion {
@Nonnull public Class<T> getType() {
return classType;
}
+
+ /** {@inheritDoc} */
+ @Override
+ @Nonnull public String toString() {
+ final StringBuilder builder = new StringBuilder();
+ builder.append("ClassCriterion [type=");
+ builder.append(classType);
+ builder.append("]");
+ return builder.toString();
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public int hashCode() {
+ return classType.hashCode();
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public boolean equals(final Object obj) {
+ if (this == obj) {
+ return true;
+ }
+
+ if (obj == null) {
+ return false;
+ }
+
+ if (obj instanceof ClassCriterion) {
+ return classType.equals(((ClassCriterion<?>) obj).classType);
+ }
+
+ return false;
+ }
}
\ 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