Skip to content

Commit

Permalink
remove sys.out
Browse files Browse the repository at this point in the history
  • Loading branch information
erkieh committed Sep 27, 2014
1 parent 5095e2c commit 70afd36
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.security.ProtectionDomain;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;

/**
* @author Erki Ehtla
Expand All @@ -27,7 +26,6 @@ public abstract class AbstractProxyTransformer implements ClassFileTransformer {

protected Instrumentation inst;
protected Map<Class<?>, TransformationState> transformationStates;
protected Map<Class<?>, Long> transStart = new ConcurrentHashMap<Class<?>, Long>();

public AbstractProxyTransformer(Instrumentation inst, Map<Class<?>, TransformationState> transformationStates) {
this.inst = inst;
Expand Down Expand Up @@ -71,15 +69,13 @@ protected byte[] transformRedefine(ClassLoader loader, String className, Class<?
if (!isTransformingNeeded(classBeingRedefined)) {
return null;
}
transStart.put(classBeingRedefined, System.currentTimeMillis());
setClassAsWaiting(classBeingRedefined);
// We can't do the transformation in this event, because we can't see the changes in the class
// definitons. Schedule a new redefinition event.
scheduleRedefinition(classBeingRedefined, classfileBuffer);
return null;
case WAITING:
removeClassState(classBeingRedefined);
System.out.println(System.currentTimeMillis() - transStart.get(classBeingRedefined));
return generateNewProxyClass(loader, className, classBeingRedefined);
default:
throw new RuntimeException("Unhandeled TransformationState!");
Expand Down

0 comments on commit 70afd36

Please sign in to comment.