Repository: incubator-juneau
Updated Branches:
  refs/heads/master bde9b1015 -> 7b883daef


Remove paramsIfNN and paramsIfNE methods.

Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/7b883dae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/7b883dae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/7b883dae

Branch: refs/heads/master
Commit: 7b883daef64b4e62e7bba45e5385a72b8f5b8bfe
Parents: bde9b10
Author: JamesBognar <[email protected]>
Authored: Fri Apr 7 14:22:28 2017 -0400
Committer: JamesBognar <[email protected]>
Committed: Fri Apr 7 14:22:28 2017 -0400

----------------------------------------------------------------------
 .../org/apache/juneau/rest/client/RestCall.java | 36 --------------------
 1 file changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/7b883dae/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestCall.java
----------------------------------------------------------------------
diff --git 
a/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestCall.java 
b/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestCall.java
index 5587f7b..e1aec11 100644
--- 
a/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestCall.java
+++ 
b/juneau-rest-client/src/main/java/org/apache/juneau/rest/client/RestCall.java
@@ -203,24 +203,6 @@ public final class RestCall {
        }
 
        /**
-        * Same as {@link #params(Map)} but ignores values that are 
<jk>null</jk>.
-        *
-        * @param params The parameters.  Values are converted to a string 
using UON notation.
-        * @return This object (for method chaining).
-        * @throws RestCallException
-        */
-       public RestCall paramsIfNN(Map<String,Object> params) throws 
RestCallException {
-               if (params != null) {
-                       for (Map.Entry<String,Object> e : params.entrySet()) {
-                               Object value = e.getValue();
-                               if (value != null)
-                                       uriBuilder.addParameter(e.getKey(), 
client.getUrlEncodingSerializer().serializeUrlPart(value));
-                       }
-               }
-               return this;
-       }
-
-       /**
         * Adds a parameter to the URI query if the parameter value is not 
<jk>null</jk> or an empty string.
         *
         * @param name The parameter name.
@@ -235,24 +217,6 @@ public final class RestCall {
        }
 
        /**
-        * Same as {@link #params(Map)} but ignores values that are 
<jk>null</jk> or empty strings.
-        *
-        * @param params The parameters.  Values are converted to a string 
using UON notation.
-        * @return This object (for method chaining).
-        * @throws RestCallException
-        */
-       public RestCall paramIfNE(Map<String,Object> params) throws 
RestCallException {
-               if (params != null) {
-                       for (Map.Entry<String,Object> e : params.entrySet()) {
-                               Object value = e.getValue();
-                               if (! StringUtils.isEmpty(value))
-                                       uriBuilder.addParameter(e.getKey(), 
client.getUrlEncodingSerializer().serializeUrlPart(value));
-                       }
-               }
-               return this;
-       }
-
-       /**
         * Sets a custom URI query.
         *
         * @param query The new URI query string.

Reply via email to