Use bindingEquals() generated for interfaces 83/90983/29
authorillia.ihushev <illia.ihushev@pantheon.tech>
Wed, 8 Jul 2020 09:58:08 +0000 (12:58 +0300)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Jul 2020 16:10:48 +0000 (18:10 +0200)
commit84344f7294ba59db666a95052db09d7c045cabfc
tree7fa9a2f33bbe1f123aebaebcd34a245089821914
parente9dd41cb4650a39376798dbd9f446cdf11934e8a
Use bindingEquals() generated for interfaces

As we are generating a default implementation of equals(), we
can defer to that implementation from runtime-generated proxies.

This results in:
- consistent results between compile-time and runtime implementations
- faster startup time, as there is only one dispatch implementation
- lower memory overhead, as runtime-generated classes are smaller
- more maintainable code, as the implementation can be examined at
  compile-time

Since this is the last method that references properties, we also
get to clean up some of the knowledge of how these need to be ordered.

JIRA: MDSAL-474
Change-Id: I1a0ca93755e670b7d8fa0834f87ee7a828843aa6
Signed-off-by: illia.ihushev <illia.ihushev@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/AugmentableCodecDataObject.java
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/CodecDataObject.java
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/CodecDataObjectGenerator.java