Polishing

This commit is contained in:
Juergen Hoeller
2014-06-26 11:44:07 +02:00
parent b3e3c5312f
commit cc917de24d
4 changed files with 14 additions and 20 deletions

View File

@@ -231,7 +231,7 @@ public class UriComponentsBuilder {
builder.scheme((scheme != null) ? scheme.toLowerCase() : scheme);
builder.userInfo(m.group(4));
String host = m.group(5);
if(StringUtils.hasLength(scheme) && !StringUtils.hasLength(host)) {
if (StringUtils.hasLength(scheme) && !StringUtils.hasLength(host)) {
throw new IllegalArgumentException("[" + httpUrl + "] is not a valid HTTP URL");
}
builder.host(host);