Skip to content

Commit

Permalink
Removed isEmpty for old VM compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandezpablo85 committed Jan 19, 2011
1 parent 380d858 commit da3a3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/scribe/utils/URLUtils.java
Expand Up @@ -110,7 +110,7 @@ public static String appendParametersToQueryString(String url, Map<String, Strin
{
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;
Expand Down

0 comments on commit da3a3f4

Please sign in to comment.