Make Volley use normal String concatenation in ImageLoader.java

The java compiler will make this a StringBuilder if it needs to be.
captchafix
nopjmp 11 years ago
parent b0abcd6d5d
commit 021edee83f
  1. 3
      Clover/app/src/main/java/com/android/volley/toolbox/ImageLoader.java

@ -474,7 +474,6 @@ public class ImageLoader {
* @param maxHeight The max-height of the output. * @param maxHeight The max-height of the output.
*/ */
private static String getCacheKey(String url, int maxWidth, int maxHeight) { private static String getCacheKey(String url, int maxWidth, int maxHeight) {
return new StringBuilder(url.length() + 12).append("#W").append(maxWidth) return "#W" + maxWidth + "#H" + maxHeight + url;
.append("#H").append(maxHeight).append(url).toString();
} }
} }

Loading…
Cancel
Save