[java-opensaml] branch master updated: Add deprecation warnings and more precise annotations.
Scott Cantor
cantor.2 at osu.edu
Mon Dec 9 15:59:23 EST 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=80cc1a6b66cc178206df284831c2b6eaefc0d27a
The following commit(s) were added to refs/heads/master by this push:
new 80cc1a6 Add deprecation warnings and more precise annotations.
80cc1a6 is described below
commit 80cc1a6b66cc178206df284831c2b6eaefc0d27a
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Dec 9 14:59:16 2019 -0600
Add deprecation warnings and more precise annotations.
---
.../src/main/java/org/opensaml/core/xml/schema/XSURI.java | 10 ++++++----
.../src/main/java/org/opensaml/saml/saml2/core/Action.java | 10 ++++++----
.../src/main/java/org/opensaml/saml/saml2/core/Artifact.java | 10 ++++++----
.../java/org/opensaml/saml/saml2/core/AssertionIDRef.java | 11 +++++++----
.../java/org/opensaml/saml/saml2/core/AssertionURIRef.java | 10 ++++++----
.../src/main/java/org/opensaml/saml/saml2/core/Audience.java | 10 ++++++----
.../org/opensaml/saml/saml2/core/AuthnContextClassRef.java | 12 ++++++++----
.../org/opensaml/saml/saml2/core/AuthnContextDeclRef.java | 12 ++++++++----
.../main/java/org/opensaml/saml/saml2/core/GetComplete.java | 10 ++++++----
.../src/main/java/org/opensaml/saml/saml2/core/NewID.java | 10 ++++++----
.../main/java/org/opensaml/saml/saml2/core/RequesterID.java | 10 ++++++----
.../main/java/org/opensaml/saml/saml2/core/SessionIndex.java | 10 ++++++----
.../java/org/opensaml/saml/saml2/core/StatusMessage.java | 11 +++++++----
13 files changed, 84 insertions(+), 52 deletions(-)
diff --git a/opensaml-core/src/main/java/org/opensaml/core/xml/schema/XSURI.java b/opensaml-core/src/main/java/org/opensaml/core/xml/schema/XSURI.java
index 6135aa3..344af92 100644
--- a/opensaml-core/src/main/java/org/opensaml/core/xml/schema/XSURI.java
+++ b/opensaml-core/src/main/java/org/opensaml/core/xml/schema/XSURI.java
@@ -22,6 +22,8 @@ import javax.annotation.Nullable;
import javax.xml.namespace.QName;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
import net.shibboleth.utilities.java.support.xml.XMLConstants;
import org.opensaml.core.xml.XMLObject;
@@ -55,10 +57,10 @@ public interface XSURI extends XMLObject {
* Gets the URI content of the element.
*
* @return the URI content of the element
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getValue() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getValue", XSURI.class.toString(), "getURI");
return getURI();
}
@@ -66,10 +68,10 @@ public interface XSURI extends XMLObject {
* Sets the URI content of the element.
*
* @param uri the URI content of the element
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setValue(@Nullable final String uri) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setValue", XSURI.class.toString(), "setURI");
setURI(uri);
}
}
\ No newline at end of file
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Action.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Action.java
index b9438a9..40ef47e 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Action.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Action.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core Action.
@@ -121,10 +123,10 @@ public interface Action extends SAMLObject, XSString {
* Gets the value of the action to be performed.
*
* @return the value of the action to be performed
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getAction() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getAction", Action.class.toString(), "getValue");
return getValue();
}
@@ -132,10 +134,10 @@ public interface Action extends SAMLObject, XSString {
* Sets the value of the action to be performed.
*
* @param value the value of the action to be performed
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setAction(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setAction", Action.class.toString(), "setValue");
setValue(value);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Artifact.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Artifact.java
index 9c128d2..a74bdc9 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Artifact.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Artifact.java
@@ -30,6 +30,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core Artifact.
@@ -47,10 +49,10 @@ public interface Artifact extends SAMLObject, XSString {
* Get artifact value.
*
* @return the artifact value
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getArtifact() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getArtifact", Artifact.class.toString(), "getValue");
return getValue();
}
@@ -58,10 +60,10 @@ public interface Artifact extends SAMLObject, XSString {
* Set artifact value.
*
* @param value new artifact value
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setArtifact(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setArtifact", Artifact.class.toString(), "setValue");
setValue(value);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionIDRef.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionIDRef.java
index f81fae4..b19394b 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionIDRef.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionIDRef.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core AssertionIDRef.
@@ -43,10 +45,10 @@ public interface AssertionIDRef extends SAMLObject, XSString, Evidentiary {
* Gets the ID of the assertion this references.
*
* @return the ID of the assertion this references
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getAssertionID() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getAssertionID", AssertionIDRef.class.toString(), "getValue");
return getValue();
}
@@ -54,10 +56,11 @@ public interface AssertionIDRef extends SAMLObject, XSString, Evidentiary {
* Sets the ID of the assertion this references.
*
* @param value the ID of the assertion this references
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setAssertionID(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setAssertionID", AssertionIDRef.class.toString(), "setValue");
setValue(value);
}
+
}
\ No newline at end of file
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionURIRef.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionURIRef.java
index fce95c6..49eab5d 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionURIRef.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AssertionURIRef.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core AssertionURIRef.
@@ -43,10 +45,10 @@ public interface AssertionURIRef extends SAMLObject, XSURI, Evidentiary {
* Gets the URI of the assertion this references.
*
* @return the URI of the assertion this references
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getAssertionURI() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getAssertionURI", AssertionURIRef.class.toString(), "getURI");
return getURI();
}
@@ -54,10 +56,10 @@ public interface AssertionURIRef extends SAMLObject, XSURI, Evidentiary {
* Sets the URI of the assertion this references.
*
* @param uri the URI of the assertion this references
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setAssertionURI(@Nullable final String uri) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setAssertionURI", AssertionURIRef.class.toString(), "setURI");
setURI(uri);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Audience.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Audience.java
index b24d12f..5f961d4 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Audience.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/Audience.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core Audience.
@@ -43,10 +45,10 @@ public interface Audience extends SAMLObject, XSURI {
* Gets the URI of the audience for the assertion.
*
* @return the URI of the audience for the assertion
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getAudienceURI() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getAudienceURI", Audience.class.toString(), "getURI");
return getURI();
}
@@ -54,10 +56,10 @@ public interface Audience extends SAMLObject, XSURI {
* Sets the URI of the audience for the assertion.
*
* @param uri the URI of the audience for the assertion
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setAudienceURI(@Nullable final String uri) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setAudienceURI", Audience.class.toString(), "setURI");
setURI(uri);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextClassRef.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextClassRef.java
index 3a9dd37..3acf566 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextClassRef.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextClassRef.java
@@ -29,6 +29,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core AuthnContextClassRef.
@@ -46,10 +48,11 @@ public interface AuthnContextClassRef extends SAMLObject, XSURI {
* Gets the URI reference to an authentication context class.
*
* @return authentication context class reference URI
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getAuthnContextClassRef() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getAuthnContextClassRef", AuthnContextClassRef.class.toString(),
+ "getURI");
return getURI();
}
@@ -57,10 +60,11 @@ public interface AuthnContextClassRef extends SAMLObject, XSURI {
* Sets the URI reference to an authentication context class.
*
* @param uri the new AuthnContextClassRef URI
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setAuthnContextClassRef(@Nullable final String uri) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setAuthnContextClassRef", AuthnContextClassRef.class.toString(),
+ "setURI");
setURI(uri);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextDeclRef.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextDeclRef.java
index 6b23b6f..071ad72 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextDeclRef.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/AuthnContextDeclRef.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core AuthnContextDeclRef.
@@ -43,10 +45,11 @@ public interface AuthnContextDeclRef extends SAMLObject, XSURI {
* Gets the URI reference to an authentication context declaration.
*
* @return authentication context declaration reference URI
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getAuthnContextDeclRef() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getAuthnContextDeclRef", AuthnContextDeclRef.class.toString(),
+ "getURI");
return getURI();
}
@@ -54,10 +57,11 @@ public interface AuthnContextDeclRef extends SAMLObject, XSURI {
* Sets the URI reference to an authentication context declaration.
*
* @param uri the new AuthnContextDeclRef URI
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setAuthnContextDeclRef(@Nullable String uri) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setAuthnContextDeclRef", AuthnContextDeclRef.class.toString(),
+ "setURI");
setURI(uri);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/GetComplete.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/GetComplete.java
index 75e5adb..e5d27c4 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/GetComplete.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/GetComplete.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core GetComplete.
@@ -43,10 +45,10 @@ public interface GetComplete extends SAMLObject, XSURI {
* Gets the GetComplete URI value.
*
* @return GetComplete URI
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getGetComplete() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getGetComplete", GetComplete.class.toString(), "getURI");
return getURI();
}
@@ -54,10 +56,10 @@ public interface GetComplete extends SAMLObject, XSURI {
* Sets the GetComplete URI.
*
* @param uri the GetComplete URI
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setGetComplete(@Nullable final String uri) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setGetComplete", GetComplete.class.toString(), "setURI");
setURI(uri);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/NewID.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/NewID.java
index cc364fb..4e56800 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/NewID.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/NewID.java
@@ -30,6 +30,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core NewID.
@@ -47,10 +49,10 @@ public interface NewID extends SAMLObject, XSString {
* Get NewID value.
*
* @return NewID value
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getNewID() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getNewID", NewID.class.toString(), "getValue");
return getValue();
}
@@ -58,10 +60,10 @@ public interface NewID extends SAMLObject, XSString {
* Set NewID value.
*
* @param value the new NewID value
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setNewID(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setNewID", NewID.class.toString(), "setValue");
setValue(value);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/RequesterID.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/RequesterID.java
index 62d6a88..765d9a9 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/RequesterID.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/RequesterID.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core RequesterID.
@@ -43,10 +45,10 @@ public interface RequesterID extends SAMLObject, XSURI {
* Gets the RequesterID value.
*
* @return RequesterID value
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getRequesterID() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getRequesterID", RequesterID.class.toString(), "getURI");
return getURI();
}
@@ -54,10 +56,10 @@ public interface RequesterID extends SAMLObject, XSURI {
* Sets the RequesterID value.
*
* @param value the RequesterID value
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setRequesterID(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setRequesterID", RequesterID.class.toString(), "setURI");
setURI(value);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/SessionIndex.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/SessionIndex.java
index 7607cc7..da435e1 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/SessionIndex.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/SessionIndex.java
@@ -30,6 +30,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core SessionIndex.
@@ -47,10 +49,10 @@ public interface SessionIndex extends SAMLObject, XSString {
* Gets the session index value of the request.
*
* @return the session index value of the request
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getSessionIndex() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getSessionIndex", SessionIndex.class.toString(), "getValue");
return getValue();
}
@@ -58,10 +60,10 @@ public interface SessionIndex extends SAMLObject, XSString {
* Sets the session index value of the request.
*
* @param value the new session index value of the request
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setSessionIndex(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setSessionIndex", SessionIndex.class.toString(), "setValue");
setValue(value);
}
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/StatusMessage.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/StatusMessage.java
index 95a2d92..99457b4 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/StatusMessage.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/StatusMessage.java
@@ -26,6 +26,8 @@ import org.opensaml.saml.common.SAMLObject;
import org.opensaml.saml.common.xml.SAMLConstants;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* SAML 2.0 Core StatusMessage.
@@ -43,10 +45,10 @@ public interface StatusMessage extends SAMLObject, XSString {
* Gets the Message of this Status Message.
*
* @return StatusMessage message
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
@Nullable default String getMessage() {
+ DeprecationSupport.warn(ObjectType.METHOD, "getMessage", StatusMessage.class.toString(), "getValue");
return getValue();
}
@@ -54,10 +56,11 @@ public interface StatusMessage extends SAMLObject, XSString {
* Sets the Message of this Status Message.
*
* @param value the Message of this Status Message
- *
- * @deprecated
*/
+ @Deprecated(forRemoval=true, since="4.0.0")
default void setMessage(@Nullable final String value) {
+ DeprecationSupport.warn(ObjectType.METHOD, "setMessage", StatusMessage.class.toString(), "setValue");
setValue(value);
}
+
}
\ 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