[java-shib-shared] branch main updated: Nullability
Rod Widdowson
rdw at steadingsoftware.com
Sun Dec 4 11:30:25 UTC 2022
This is an automated email from the git hooks/post-receive script.
rdw 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=137ec30e158cc16d3f258bf3e48fa4e55b1ddc16
The following commit(s) were added to refs/heads/main by this push:
new 137ec30e Nullability
137ec30e is described below
commit 137ec30e158cc16d3f258bf3e48fa4e55b1ddc16
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Dec 4 11:29:41 2022 +0000
Nullability
---
.../java/net/shibboleth/shared/testing/MockReloadableService.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/shib-testing/src/main/java/net/shibboleth/shared/testing/MockReloadableService.java b/shib-testing/src/main/java/net/shibboleth/shared/testing/MockReloadableService.java
index 44a473bd..65118aa3 100644
--- a/shib-testing/src/main/java/net/shibboleth/shared/testing/MockReloadableService.java
+++ b/shib-testing/src/main/java/net/shibboleth/shared/testing/MockReloadableService.java
@@ -51,12 +51,12 @@ public class MockReloadableService<T> extends AbstractReloadableService<T> {
/** {@inheritDoc} */
@Override
@Nonnull public ServiceableComponent<T> getServiceableComponent() {
- if (null == component) {
+ final SpringServiceableComponent<T> result = component;
+ if (null == result) {
throw new ServiceException("Mock component is null");
}
- assert(component != null);
- component.pinComponent();
- return component;
+ result.pinComponent();
+ return result;
}
/** {@inheritDoc} */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list