@Override
public int hashCode() {
- return hashBuilder.toInstance();
+ return hashBuilder.build();
}
@SuppressWarnings("unchecked")
}
@SuppressWarnings("unchecked")
- final InstanceIdentifier<T> ret = (InstanceIdentifier<T>) InstanceIdentifier.trustedCreate(arg, pathArguments, hashBuilder.toInstance(), wildcard);
+ final InstanceIdentifier<T> ret = (InstanceIdentifier<T>) InstanceIdentifier.trustedCreate(arg, pathArguments, hashBuilder.build(), wildcard);
return ret;
}
- @Override
+ /*
+ * @deprecated Use #build() instead.
+ */
+ @Deprecated
public InstanceIdentifier<T> toInstance() {
return build();
}