HBASE-2397 Bytes.toStringBinary escapes printable chars
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@951840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
24ee53c9c4
commit
3181d96ec8
|
@ -23,6 +23,7 @@ Release 0.21.0 - Unreleased
|
||||||
HBASE-2541 Remove transactional contrib (Clint Morgan via Stack)
|
HBASE-2541 Remove transactional contrib (Clint Morgan via Stack)
|
||||||
HBASE-2542 Fold stargate contrib into core
|
HBASE-2542 Fold stargate contrib into core
|
||||||
HBASE-2565 Remove contrib module from hbase
|
HBASE-2565 Remove contrib module from hbase
|
||||||
|
HBASE-2397 Bytes.toStringBinary escapes printable chars
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
HBASE-1791 Timeout in IndexRecordWriter (Bradford Stephens via Andrew
|
HBASE-1791 Timeout in IndexRecordWriter (Bradford Stephens via Andrew
|
||||||
|
|
|
@ -320,16 +320,7 @@ public class Bytes {
|
||||||
if ( (ch >= '0' && ch <= '9')
|
if ( (ch >= '0' && ch <= '9')
|
||||||
|| (ch >= 'A' && ch <= 'Z')
|
|| (ch >= 'A' && ch <= 'Z')
|
||||||
|| (ch >= 'a' && ch <= 'z')
|
|| (ch >= 'a' && ch <= 'z')
|
||||||
|| ch == ','
|
|| " `~!@#$%^&*()-_=+[]{}\\|;:'\",.<>/?".indexOf(ch) >= 0 ) {
|
||||||
|| ch == '_'
|
|
||||||
|| ch == '-'
|
|
||||||
|| ch == ':'
|
|
||||||
|| ch == ' '
|
|
||||||
|| ch == '<'
|
|
||||||
|| ch == '>'
|
|
||||||
|| ch == '='
|
|
||||||
|| ch == '/'
|
|
||||||
|| ch == '.') {
|
|
||||||
result.append(first.charAt(i));
|
result.append(first.charAt(i));
|
||||||
} else {
|
} else {
|
||||||
result.append(String.format("\\x%02X", ch));
|
result.append(String.format("\\x%02X", ch));
|
||||||
|
|
Loading…
Reference in New Issue