oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1460867 - /oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/exception/OAuthProblemException.java
Date Mon, 25 Mar 2013 20:00:03 GMT
Author: stein
Date: Mon Mar 25 20:00:02 2013
New Revision: 1460867

URL: http://svn.apache.org/r1460867
Log:
Add all fields to toString method. use StringBuilder instead of StringBuffer for speed.

Modified:
    oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/exception/OAuthProblemException.java

Modified: oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/exception/OAuthProblemException.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/exception/OAuthProblemException.java?rev=1460867&r1=1460866&r2=1460867&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/exception/OAuthProblemException.java
(original)
+++ oltu/trunk/oauth-2.0/common/src/main/java/org/apache/oltu/oauth2/common/exception/OAuthProblemException.java
Mon Mar 25 20:00:02 2013
@@ -135,7 +135,7 @@ public final class OAuthProblemException
 
     @Override
     public String getMessage() {
-        StringBuffer b = new StringBuffer();
+        StringBuilder b = new StringBuilder();
         if (!OAuthUtils.isEmpty(error)) {
             b.append(error);
         }
@@ -163,12 +163,15 @@ public final class OAuthProblemException
 
     @Override
     public String toString() {
-        return "OAuthProblemException{"
-            + "description='" + description + '\''
-            + ", error='" + error + '\''
-            + ", uri='" + uri + '\''
-            + ", state='" + state + '\''
-            + ", scope='" + scope + '\''
-            + '}';
+        return "OAuthProblemException{" +
+                "error='" + error + '\'' +
+                ", description='" + description + '\'' +
+                ", uri='" + uri + '\'' +
+                ", state='" + state + '\'' +
+                ", scope='" + scope + '\'' +
+                ", redirectUri='" + redirectUri + '\'' +
+                ", responseStatus=" + responseStatus +
+                ", parameters=" + parameters +
+                '}';
     }
 }



Mime
View raw message