Do not box result twice 22/77922/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Nov 2018 20:58:17 +0000 (21:58 +0100)
committerRobert Varga <nite@hq.sk>
Sun, 18 Nov 2018 21:26:37 +0000 (21:26 +0000)
commit812a658cb4bc85ec29b0656d5e91ccd541890f20
treed2fc205f77ee8eb572921ed2bb3af8c2d76b677a
parent4257a752ebfcef6d4fee954be66904a0a9e7381d
Do not box result twice

result is an int while both cache and return type are Integer,
instantiate a local variable to hold the boxed value so we not
box twice.

Change-Id: I659b60b40d0d1dfa1eee25d214af4a096bf3e60e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/LazyDataObject.java