Return-Path: X-Original-To: apmail-oltu-commits-archive@www.apache.org Delivered-To: apmail-oltu-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B23ED196DE for ; Tue, 1 Mar 2016 23:39:21 +0000 (UTC) Received: (qmail 40114 invoked by uid 500); 1 Mar 2016 23:39:21 -0000 Delivered-To: apmail-oltu-commits-archive@oltu.apache.org Received: (qmail 40089 invoked by uid 500); 1 Mar 2016 23:39:21 -0000 Mailing-List: contact commits-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oltu.apache.org Delivered-To: mailing list commits@oltu.apache.org Received: (qmail 40079 invoked by uid 99); 1 Mar 2016 23:39:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2016 23:39:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 431D71A1130 for ; Tue, 1 Mar 2016 23:39:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.671 X-Spam-Level: X-Spam-Status: No, score=0.671 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WXY8F3O93l97 for ; Tue, 1 Mar 2016 23:39:20 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5E2505F39C for ; Tue, 1 Mar 2016 23:39:13 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2887DE0057 for ; Tue, 1 Mar 2016 23:37:14 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 28E533A024F for ; Tue, 1 Mar 2016 23:37:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1733190 - /oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java Date: Tue, 01 Mar 2016 23:37:14 -0000 To: commits@oltu.apache.org From: stein@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160301233714.28E533A024F@svn01-us-west.apache.org> Author: stein Date: Tue Mar 1 23:37:13 2016 New Revision: 1733190 URL: http://svn.apache.org/viewvc?rev=1733190&view=rev Log: OLTU-68 Remove unused method. Modified: oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java Modified: oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java?rev=1733190&r1=1733189&r2=1733190&view=diff ============================================================================== --- oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java (original) +++ oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/utils/OAuthUtils.java Tue Mar 1 23:37:13 2016 @@ -248,23 +248,6 @@ public final class OAuthUtils { } } - /** - * Construct a &-separated list of the given values, percentEncoded. - */ - public static String percentEncode(Iterable values) { - StringBuilder p = new StringBuilder(); - for (Object v : values) { - String stringValue = toString(v); - if (!isEmpty(stringValue)) { - if (p.length() > 0) { - p.append("&"); - } - p.append(OAuthUtils.percentEncode(toString(v))); - } - } - return p.toString(); - } - public static String percentEncode(String s) { if (s == null) { return ""; @@ -280,10 +263,6 @@ public final class OAuthUtils { } } - private static final String toString(Object from) { - return (from == null) ? null : from.toString(); - } - private static boolean isEmpty(Set missingParams) { if (missingParams == null || missingParams.size() == 0) { return true;