Refactor StreamWriterWithDisabledValidation 02/103202/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 10 Nov 2022 17:40:23 +0000 (18:40 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 10 Nov 2022 17:41:48 +0000 (18:41 +0100)
commitae721eb9a2727c43752faac41e540bbfc62d7f6d
treeb89d7cba6d1712475e2bc7a166ca39fb569c4415
parente96cd2fe416dae3657b3677fda89ddf30f1c4a3a
Refactor StreamWriterWithDisabledValidation

We are unnecessarily passing things to each instance, where these
are static knowledge. Reduce the footprint of each instance by moving
these constants around and adjusting instantiation accordingly.

Change-Id: I72fe28699fdd55325126b5930b77e151293582eb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/JsonStreamWriterWithDisabledValidation.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/StreamWriterWithDisabledValidation.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/XmlStreamWriterWithDisabledValidation.java