mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-27 21:29:12 +00:00
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:
parent
da5aebe735
commit
5227866cd9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user