Skip to content
Browse files

Merge pull request #8 from Acrobot/patch-1

1-letter-strings -> chars
  • Loading branch information...
2 parents f0542dd + adc8b9f commit c39b553907031684a4a45b088cd2f7e783b6e1be @Hidendra Hidendra committed Mar 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Bukkit/Metrics.java
View
4 Bukkit/Metrics.java
@@ -370,15 +370,15 @@ private boolean isMineshafterPresent() {
* Encode a key/value data pair to be used in a HTTP post request. This INCLUDES a & so the first
* key/value pair MUST be included manually, e.g:
* <p>
- * String httpData = encode("guid") + "=" + encode("1234") + encodeDataPair("authors") + "..";
+ * String httpData = encode("guid") + '=' + encode("1234") + encodeDataPair("authors") + "..";
* </p>
*
* @param key
* @param value
* @return
*/
private static String encodeDataPair(String key, String value) throws UnsupportedEncodingException {
- return "&" + encode(key) + "=" + encode(value);
+ return '&' + encode(key) + '=' + encode(value);
}
/**

0 comments on commit c39b553

Please sign in to comment.
Something went wrong with that request. Please try again.