cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1294354 - /cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth/provider/OAuthJSONProvider.java
Date Mon, 27 Feb 2012 22:00:18 GMT
Author: sergeyb
Date: Mon Feb 27 22:00:17 2012
New Revision: 1294354

URL: http://svn.apache.org/viewvc?rev=1294354&view=rev
Log:
Fixing the build failure on 1.5

Modified:
    cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth/provider/OAuthJSONProvider.java

Modified: cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth/provider/OAuthJSONProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth/provider/OAuthJSONProvider.java?rev=1294354&r1=1294353&r2=1294354&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth/provider/OAuthJSONProvider.java
(original)
+++ cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth/provider/OAuthJSONProvider.java
Mon Feb 27 22:00:17 2012
@@ -112,7 +112,7 @@ public class OAuthJSONProvider implement
 
     public Map<String, String> readJSONResponse(InputStream is) throws IOException
 {
         String str = IOUtils.readStringFromStream(is).trim();
-        if (str.isEmpty()) {
+        if (str.length() == 0) {
             return Collections.emptyMap();
         }
         if (!str.startsWith("{") || !str.endsWith("}")) {



Mime
View raw message