[java-shib-shared] branch main updated: Add annotations.
Scott Cantor
cantor.2 at osu.edu
Mon Nov 21 17:36:18 UTC 2022
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=aca8d2bde257201bf4bf01349d6d61cfce78cde4
The following commit(s) were added to refs/heads/main by this push:
new aca8d2bd Add annotations.
aca8d2bd is described below
commit aca8d2bde257201bf4bf01349d6d61cfce78cde4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Nov 21 12:36:15 2022 -0500
Add annotations.
---
.../net/shibboleth/shared/net/CookieManagerTest.java | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/shib-networking/src/test/java/net/shibboleth/shared/net/CookieManagerTest.java b/shib-networking/src/test/java/net/shibboleth/shared/net/CookieManagerTest.java
index 17692765..050af270 100644
--- a/shib-networking/src/test/java/net/shibboleth/shared/net/CookieManagerTest.java
+++ b/shib-networking/src/test/java/net/shibboleth/shared/net/CookieManagerTest.java
@@ -17,6 +17,8 @@
package net.shibboleth.shared.net;
+import javax.annotation.Nonnull;
+
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.testng.Assert;
@@ -47,8 +49,8 @@ public class CookieManagerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
CookieManager cm = new CookieManager();
- cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { public HttpServletRequest get() {return request;}});
- cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { public HttpServletResponse get() {return response;}});
+ cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletRequest get() {return request;}});
+ cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletResponse get() {return response;}});
cm.initialize();
}
@@ -57,8 +59,8 @@ public class CookieManagerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
CookieManager cm = new CookieManager();
- cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { public HttpServletRequest get() {return request;}});
- cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { public HttpServletResponse get() {return response;}});
+ cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletRequest get() {return request;}});
+ cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletResponse get() {return response;}});
cm.setCookiePath("/idp");
cm.initialize();
@@ -79,8 +81,8 @@ public class CookieManagerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
CookieManager cm = new CookieManager();
- cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { public HttpServletRequest get() {return request;}});
- cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { public HttpServletResponse get() {return response;}});
+ cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletRequest get() {return request;}});
+ cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletResponse get() {return response;}});
cm.initialize();
cm.addCookie("foo", "bar");
@@ -101,8 +103,8 @@ public class CookieManagerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
CookieManager cm = new CookieManager();
- cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { public HttpServletRequest get() {return request;}});
- cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { public HttpServletResponse get() {return response;}});
+ cm.setHttpServletRequestSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletRequest get() {return request;}});
+ cm.setHttpServletResponseSupplier(new NonNullSupplier<>() { @Nonnull public HttpServletResponse get() {return response;}});
cm.initialize();
cm.unsetCookie("foo");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list