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-2542 Fold stargate contrib into core
|
||||
HBASE-2565 Remove contrib module from hbase
|
||||
HBASE-2397 Bytes.toStringBinary escapes printable chars
|
||||
|
||||
BUG FIXES
|
||||
HBASE-1791 Timeout in IndexRecordWriter (Bradford Stephens via Andrew
|
||||
|
|
|
@ -320,16 +320,7 @@ public class Bytes {
|
|||
if ( (ch >= '0' && ch <= '9')
|
||||
|| (ch >= 'A' && ch <= 'Z')
|
||||
|| (ch >= 'a' && ch <= 'z')
|
||||
|| ch == ','
|
||||
|| ch == '_'
|
||||
|| ch == '-'
|
||||
|| ch == ':'
|
||||
|| ch == ' '
|
||||
|| ch == '<'
|
||||
|| ch == '>'
|
||||
|| ch == '='
|
||||
|| ch == '/'
|
||||
|| ch == '.') {
|
||||
|| " `~!@#$%^&*()-_=+[]{}\\|;:'\",.<>/?".indexOf(ch) >= 0 ) {
|
||||
result.append(first.charAt(i));
|
||||
} else {
|
||||
result.append(String.format("\\x%02X", ch));
|
||||
|
|
Loading…
Reference in New Issue