Optimize BindingMapping.toCamelCase() 43/8643/2
authorRobert Varga <rovarga@cisco.com>
Thu, 3 Jul 2014 21:38:47 +0000 (23:38 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 4 Jul 2014 07:17:03 +0000 (09:17 +0200)
commitc171247f1654b9f6cf4e325f9eb746447b2f98b2
tree92894b15787cfd7a43553639c8c5bbf72491506b
parent90d0c4f928887171dd1598d844c7939a78beb708
Optimize BindingMapping.toCamelCase()

Instead of replacing characters, we use a CharMatcher in the Splitter.
This elides the need to copy strings and search them multiple times.

Change-Id: Iff0e580f927a5f983a3eb6e2e3b318f33a1b2217
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/BindingMapping.java