[java-support] branch master updated: Allow null component in mock class.

Scott Cantor cantor.2 at osu.edu
Thu May 16 09:34:39 EDT 2019


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

scantor pushed a commit to branch master
in repository java-support.

View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=34519042faadc3271dfd88c00a5f7f9be63b9f14

The following commit(s) were added to refs/heads/master by this push:
       new  3451904   Allow null component in mock class.
3451904 is described below

commit 34519042faadc3271dfd88c00a5f7f9be63b9f14
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu May 16 09:34:37 2019 -0400

    Allow null component in mock class.
---
 .../utilities/java/support/service/MockReloadableService.java       | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/test/java/net/shibboleth/utilities/java/support/service/MockReloadableService.java b/src/test/java/net/shibboleth/utilities/java/support/service/MockReloadableService.java
index 2e66464..6d1aebe 100644
--- a/src/test/java/net/shibboleth/utilities/java/support/service/MockReloadableService.java
+++ b/src/test/java/net/shibboleth/utilities/java/support/service/MockReloadableService.java
@@ -20,8 +20,6 @@ package net.shibboleth.utilities.java.support.service;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
-import net.shibboleth.utilities.java.support.logic.Constraint;
-
 /**
  * Utility class for wrapping a serviceable component in a dummy reloadable service.
  * 
@@ -31,8 +29,8 @@ public class MockReloadableService<T> extends AbstractReloadableService<T> {
 
     @Nonnull private final ServiceableComponent<T> component;
 
-    public MockReloadableService(@Nonnull final ServiceableComponent<T> what) {
-        component = Constraint.isNotNull(what, "Component cannot be null");
+    public MockReloadableService(@Nullable final ServiceableComponent<T> what) {
+        component = what;
     }
 
     /** {@inheritDoc} */

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


More information about the commits mailing list