[java-support] branch master updated: JSPT-77 - deprecate hashCode, mark firstNonNull as SafeVarargs
Ian Young
ian at iay.org.uk
Tue Dec 3 11:06:11 EST 2019
This is an automated email from the git hooks/post-receive script.
iay 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=0ccd35111eefa4a2324ba7b75d1bb3257d90b210
The following commit(s) were added to refs/heads/master by this push:
new 0ccd351 JSPT-77 - deprecate hashCode, mark firstNonNull as SafeVarargs
0ccd351 is described below
commit 0ccd35111eefa4a2324ba7b75d1bb3257d90b210
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Tue Dec 3 15:25:22 2019 +0000
JSPT-77 - deprecate hashCode, mark firstNonNull as SafeVarargs
https://issues.shibboleth.net/jira/browse/JSPT-77
---
.../net/shibboleth/utilities/java/support/primitive/ObjectSupport.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/primitive/ObjectSupport.java b/src/main/java/net/shibboleth/utilities/java/support/primitive/ObjectSupport.java
index cf46a61..25ba236 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/primitive/ObjectSupport.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/primitive/ObjectSupport.java
@@ -34,6 +34,7 @@ public final class ObjectSupport {
*
* @return the hash code for the object of 0 if the given object is null
*/
+ @Deprecated(forRemoval=true)
public static int hashCode(@Nullable final Object o) {
if (o == null) {
return 0;
@@ -59,6 +60,7 @@ public final class ObjectSupport {
* @return the first non-null argument, or null if all arguments are null
*
*/
+ @SafeVarargs
@Nullable public static <T> T firstNonNull(@Nullable final T ... objects) {
if (objects == null) {
return null;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list