BUG-1275: speedup toPredicateValue() 43/8543/3
authorRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 10:12:45 +0000 (12:12 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 16:17:16 +0000 (18:17 +0200)
commitaaa9314cb5aea8c725528017a311b8f81e0141b2
treee1dbe552318f54854bf2ab867e0b5e895218b3d3
parent966b2441aaea530c865a81550e4d46e9df18e1f9
BUG-1275: speedup toPredicateValue()

Instead of performing startsWith/endsWith, we first check the first
character and based on that we optinally trim the string to the matching
character. Also fixes a bug, where string like 'abc" would be accepted.

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