BUG-1275: optimize TypeDefinitionAwareCodec.normalizeHexadecimal() 38/8538/1
authorRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 10:26:02 +0000 (12:26 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 11:47:59 +0000 (13:47 +0200)
commitbf50ed7ddf2a033e5f3634949879db33a70ab873
treeda3632c53044f0671051f987af54d35a4cd64dc8
parent2a28d59c05c782e9f1ca2711fe5a161930ab133b
BUG-1275: optimize TypeDefinitionAwareCodec.normalizeHexadecimal()

normalizeHexadecimal() used non-optimal combination of searching for a
substring and a non-compiled regex replace. Optimize this by using
a precomputed CharMatcher instead.

Change-Id: Ie388735244c779d0e80ed98d8c6ce71bf2f4fbf6
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/TypeDefinitionAwareCodec.java