hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1157360 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/UriBuilder.java
Date Sat, 13 Aug 2011 09:32:42 GMT
Author: olegk
Date: Sat Aug 13 09:32:41 2011
New Revision: 1157360

URL: http://svn.apache.org/viewvc?rev=1157360&view=rev
Log:
Minor tweaks to UriBuilder

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/UriBuilder.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/UriBuilder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/UriBuilder.java?rev=1157360&r1=1157359&r2=1157360&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/UriBuilder.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/UriBuilder.java
Sat Aug 13 09:32:41 2011
@@ -43,7 +43,7 @@ public class UriBuilder {
     private URI uri;
     private String enc;
     private boolean encOn;
-    private static Set<String> supportedEncoding;
+    private Set<String> supportedEncoding;
 
     public UriBuilder() {
         init();
@@ -91,8 +91,7 @@ public class UriBuilder {
         if (uri != null)
             return uri;
         else
-            throw new RuntimeException(
-                    "too less information provided to build URI");
+            throw new IllegalStateException("Not enough information to build URI");
     }
 
     private void digestURI(URI uri, boolean raw) {



Mime
View raw message