[java-shib-shared] 01/08: Log type of unidentifiable component.
Scott Cantor
cantor.2 at osu.edu
Thu Jul 25 17:05:24 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-9.1
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=dee7c1499460a31ae86f54a5d6711393f8a4f24b
commit dee7c1499460a31ae86f54a5d6711393f8a4f24b
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