}
private boolean assertProxyCallBack(
final IProxyCallBackToImplement proxyCallBack) {
final Object localObject = getObject();
final IProxyCallBackProxyDelegation proxyCallBackOflocalObject = ProxyManager2
.getProxyCallBack(localObject);
if (proxyCallBackOflocalObject == null) {
if (localObject == null) {
throw new AssertionError(
"null have not proxy call back. expected "
+ (proxyCallBack == null ? "none"
: proxyCallBack.getClass()));
} else {
throw new AssertionError("no proxy call back for "
+ localObject.getClass().getName()
+ "@"
+ System.identityHashCode(localObject)
+ ". expected "
+ (proxyCallBack == null ? "none"
: proxyCallBack.getClass()));
}
}
final ObjectAndPersistInfo localObjectAndPersistInfo = proxyCallBackOflocalObject
.getInstance$JOAFIP$();
if (localObjectAndPersistInfo != this) {
throw new AssertionError(
"proxy call back must reference this\nthis creation");
}
if (proxyCallBackOflocalObject != proxyCallBack) { // NOPMD
throw new AssertionError("proxy call back mismatch set to "
+ (proxyCallBack == null ? "none"
: proxyCallBack.getClass())
+ " and current is "
+ (proxyCallBackOflocalObject == null ? "none"
: proxyCallBackOflocalObject.getClass())
+ " for instance of " + localObject.getClass());
}
return true;
}