This fixes a bug where a "Not a Proxy Instance"
exception (also IllegalArgumentException) is thrown
when hashCode is invoked in a yangtools generated
builder.
Change-Id: Icb96311f2c0c77dc8ba1377279de18b0db3886d1
Signed-off-by: Thomas Bachman <tbachman@yahoo.com>
final Object value = getBindingData(m);
result = prime * result + ((value == null) ? 0 : value.hashCode());
}
- if (Augmentable.class.isAssignableFrom(context.getBindingClass())) {
+ if (Augmentation.class.isAssignableFrom(context.getBindingClass())) {
result = prime * result + (getAugmentations(this).hashCode());
}
cachedHashcode = result;