Fix YANG snippet escaping 39/88339/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 2 Mar 2020 12:58:50 +0000 (13:58 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 6 Mar 2020 19:31:50 +0000 (20:31 +0100)
commit494e530771a4652175f1ca7c0488a04706e18237
tree5ff01edb21bf6000c61a2af38a6141a7234f7a59
parentfa1024b0702f638e0642c6f4d6cdcdec7ab02a24
Fix YANG snippet escaping

This is the non-javadoc path for module generation, where we are
failing to escape potential unicode references. Add the proper
callout and also optimize it to be a faster no-op when not
applicable, properly documenting what is going on.

JIRA: MDSAL-529
Change-Id: Ib21ed4f15555d49aaa7eb3dac61043c4b2e90451
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-util/src/main/java/org/opendaylight/mdsal/binding/model/util/BindingGeneratorUtil.java
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BaseTemplate.xtend
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/mdsal/binding/java/api/generator/test/CompilationTest.java
binding/mdsal-binding-java-api-generator/src/test/resources/compilation/mdsal529/foo.yang [new file with mode: 0644]