[java-shib-shared] branch main updated: Log type of unidentifiable component.
Scott Cantor
cantor.2 at osu.edu
Tue May 14 20:17:38 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=ccef0cfaddac4357677b276a97543612f65e5327
The following commit(s) were added to refs/heads/main by this push:
new ccef0cfa Log type of unidentifiable component.
ccef0cfa is described below
commit ccef0cfaddac4357677b276a97543612f65e5327
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue May 14 16:17:35 2024 -0400
Log type of unidentifiable component.
---
.../shared/component/AbstractIdentifiedInitializableComponent.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java b/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java
index f5e44925..ce17bedb 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/component/AbstractIdentifiedInitializableComponent.java
@@ -99,7 +99,7 @@ public abstract class AbstractIdentifiedInitializableComponent extends AbstractI
protected synchronized void setId(@Nonnull @NotEmpty final String componentId) {
checkSetterPreconditions();
- id = Constraint.isNotNull(StringSupport.trimOrNull(componentId), "Component ID can not be null or empty");
+ id = Constraint.isNotNull(StringSupport.trimOrNull(componentId), "Component ID cannot be null or empty");
}
/**
@@ -111,7 +111,7 @@ public abstract class AbstractIdentifiedInitializableComponent extends AbstractI
super.doInitialize();
if (getId() == null) {
- throw new ComponentInitializationException("Component identifier can not be null");
+ throw new ComponentInitializationException("Component ID for type " + getClass() + " cannot be null");
}
}
}
\ 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