Use strict String->byte[] conversion 83/101883/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Jul 2022 18:15:30 +0000 (20:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Jul 2022 18:16:45 +0000 (20:16 +0200)
commit44926051c90f28ca6d6015ff57f5a4cbf9f716d4
treedbc2cb4adb4106924ab23bf9d6d6a7ee60c5bd99
parent9110c5921ba8f05ceafefb784bf95b1b1655d6d2
Use strict String->byte[] conversion

Improve defensiveness around constant encoding: the strings are expected
to be be ASCII-only, so enforce that by using a properly-configured
coder.

Change-Id: I991640d6ad6e4c928b64fdabcbe7f0b60418c7af
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/MessageParts.java