We can use an implicit cast here, let's just do that to make things a
tad simpler.
Change-Id: Ic2f48c2b8f3fc0e4b5aec0b699cad8edf4c434b0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@«override»
public boolean equals(final «objectType.importedName» obj) {
- return obj == this || obj instanceof «typeName»
- && «typeName».class.equals(((«typeName») obj).«BindingMapping.BINDING_CONTRACT_IMPLEMENTED_INTERFACE_NAME»());
+ return obj == this || obj instanceof «typeName» other
+ && «typeName».class.equals(other.«BindingMapping.BINDING_CONTRACT_IMPLEMENTED_INTERFACE_NAME»());
}
@«override»