Make wrapped class equals() final 66/83766/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Aug 2019 14:21:51 +0000 (16:21 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Aug 2019 14:26:05 +0000 (16:26 +0200)
commit27306e5534ed51aa555747f3805dbca3e49fca3f
tree492ae75bbf5be08844acf2a6320edcd059856385
parent73240e16f4a080e6a51ddfce0475edd5b377896b
Make wrapped class equals() final

This forbids overriding equals() for wrapper classes, meaning
the first class in hierarchy defines the proper equality
contract, which cannot be overridden.

This means that all objects within that hierarchy are considered
equal if they have the same representation (i.e. fields).

JIRA: MDSAL-440
Change-Id: I0c90ad9553071be8a8fc1109b663fe631b5599b9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/ClassTemplate.xtend