Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8 from Acrobot/patch-1

1-letter-strings -> chars
  • Loading branch information...
commit c39b553907031684a4a45b088cd2f7e783b6e1be 2 parents f0542dd + adc8b9f
@Hidendra Hidendra authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Bukkit/Metrics.java
View
4 Bukkit/Metrics.java
@@ -370,7 +370,7 @@ 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
@@ -378,7 +378,7 @@ private boolean isMineshafterPresent() {
* @return
*/
private static String encodeDataPair(String key, String value) throws UnsupportedEncodingException {
- return "&" + encode(key) + "=" + encode(value);
+ return '&' + encode(key) + '=' + encode(value);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.