[java-support] branch master updated: Formally deprecate our URL encoder/decoder.
Scott Cantor
cantor.2 at osu.edu
Fri Sep 2 20:03:45 EDT 2016
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=b220108ee33691c6c8ccfb63cb33140d811f9f9e
The following commit(s) were added to refs/heads/master by this push:
new b220108 Formally deprecate our URL encoder/decoder.
b220108 is described below
commit b220108ee33691c6c8ccfb63cb33140d811f9f9e
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Sep 2 20:03:43 2016 -0400
Formally deprecate our URL encoder/decoder.
---
.../java/net/shibboleth/utilities/java/support/net/URISupport.java | 4 ++++
.../java/net/shibboleth/utilities/java/support/net/URLBuilder.java | 2 ++
2 files changed, 6 insertions(+)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/net/URISupport.java b/src/main/java/net/shibboleth/utilities/java/support/net/URISupport.java
index b723013..8868e50 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/net/URISupport.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/net/URISupport.java
@@ -369,6 +369,8 @@ public final class URISupport {
*
* @param value the string to decode
* @return the decoded string
+ *
+ * @deprecated
*/
public static String doURLDecode(final String value) {
if (value == null) {
@@ -393,6 +395,8 @@ public final class URISupport {
*
* @param value the string to encode
* @return the encoded string
+ *
+ * @deprecated
*/
public static String doURLEncode(final String value) {
if (value == null) {
diff --git a/src/main/java/net/shibboleth/utilities/java/support/net/URLBuilder.java b/src/main/java/net/shibboleth/utilities/java/support/net/URLBuilder.java
index aea5c48..47285d3 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/net/URLBuilder.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/net/URLBuilder.java
@@ -78,6 +78,7 @@ public class URLBuilder {
* @throws MalformedURLException thrown if the given base URL is not well formed
*
*/
+ @SuppressWarnings("deprecation")
public URLBuilder(@Nonnull @NotEmpty final String baseURL) throws MalformedURLException {
final URL url = new URL(baseURL);
@@ -321,6 +322,7 @@ public class URLBuilder {
*
* @return query string for the URL or null if there are now query parameters
*/
+ @SuppressWarnings("deprecation")
@Nullable public String buildQueryString() {
if (queryParams.size() > 0) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list