git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@832028
13f79535-47bb-0310-9956-
ffa450edef68
contentLanguage = locale.getLanguage();
if ((contentLanguage != null) && (contentLanguage.length() > 0)) {
String country = locale.getCountry();
- StringBuffer value = new StringBuffer(contentLanguage);
+ StringBuilder value = new StringBuilder(contentLanguage);
if ((country != null) && (country.length() > 0)) {
value.append('-');
value.append(country);
protected static String hexLine(byte buf[], int start, int len) {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (int i = start; i < start + 16 ; i++) {
if (i < len + 4) {
sb.append(hex(buf[i]) + " ");