StringBuffer cleanup
authorStephen Kitt <skitt@redhat.com>
Mon, 15 May 2017 13:15:08 +0000 (15:15 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 17 May 2017 09:07:44 +0000 (09:07 +0000)
commitc32e575071202217104120243a93e055675e3a6e
tree8e8ef0ead2382b02bab96977a65ba8d4ad8e0a84
parent3cd86e97df4bc1c07bb44eb6d55f6123f225660b
StringBuffer cleanup

This patch cleans up StringBuffer use, mostly replacing StringBuffer
with StringBuilder or plain String concatenation for short sequences
(or constants).

* HexEncode: additionally, avoid using a separate return variable,
  drop the useless ":" handling in bytesToHexString(), and add the
  test class from l2switch.
* HardcodedModuleFactoriesResolver: rework the conflicting module
  handling.

Change-Id: Id76e91bba9ce40bd8ed5947c2d40e3a7baf0a949
Signed-off-by: Stephen Kitt <skitt@redhat.com>
src/main/java/org/opendaylight/controller/liblldp/HexEncode.java
src/test/java/org/opendaylight/controller/liblldp/HexEncodeTest.java [new file with mode: 0644]