Removed isEmpty for old VM compatibility

This commit is contained in:
Pablo Fernandez committed 2011-01-19 13:41:41 -03:00
1 parent 380d858b13
commit da3a3f4a0d
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ public class URLUtils
{
Preconditions.checkNotNull(url, "Cannot append to null URL");
String queryString = URLUtils.formURLEncodeMap(params);
if (queryString.isEmpty()) return url;
if (queryString.length() == 0) return url;
// Check if there are parameters in the url already and use '&' instead of '?'
url += url.indexOf(QUERY_STRING_SEPARATOR) != -1 ? PARAM_SEPARATOR : QUERY_STRING_SEPARATOR;