Skip to content

Commit

Permalink
Make reference local. Fix attempt for bug 3240.
Browse files Browse the repository at this point in the history
Attempt at fixing bug 3240. In any way it makes more sense to have this
variable local as is now the case, regardless of whether this actually fixes
the bug, or not.
  • Loading branch information
jonalv committed Jul 31, 2012
1 parent f999c72 commit 72b7a5f
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -8,21 +8,19 @@
*******************************************************************************/
package net.bioclipse.recording;

import net.bioclipse.recording.Activator;
import net.bioclipse.core.domain.IBioObject;

import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.framework.ProxyFactory;

public class WrapInProxyAdvice implements IWrapInProxyAdvice {

private ProxyFactory pf;

public Object invoke(MethodInvocation invocation) throws Throwable {
Object returnValue = invocation.proceed();
if( returnValue instanceof IBioObject &&
!(returnValue instanceof net.sf.cglib.proxy.Factory) ) {
pf = new ProxyFactory();
ProxyFactory pf = new ProxyFactory();
pf.addAdvice(this);
// pf.addAdvice(Activator.getDefault().getRecordingAdvice());
pf.setTarget(returnValue);
Expand Down

0 comments on commit 72b7a5f

Please sign in to comment.