Minor tweaks to UriBuilder

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1157360 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2011-08-13 09:32:41 +00:00
parent da5aebe735
commit 5227866cd9

View File

@ -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 URI build() throws RuntimeException {
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) {