This commit is contained in:
Sander Hautvast 2018-04-06 16:32:52 +02:00
parent bf6ec2acb6
commit 47a88fac4a

View file

@ -23,8 +23,6 @@ public class Agent {
inst.addTransformer((classLoader, resource, aClass, protectionDomain, uninstrumentedByteCode) -> { inst.addTransformer((classLoader, resource, aClass, protectionDomain, uninstrumentedByteCode) -> {
if (!isInnerClass(resource) && shouldInclude(resource, includes)) { if (!isInnerClass(resource) && shouldInclude(resource, includes)) {
// System.out.println("instrumenting " + resource);
try { try {
byte[] instrumentedBytecode = instrumentMethod(resource); byte[] instrumentedBytecode = instrumentMethod(resource);
if (instrumentedBytecode != null) { if (instrumentedBytecode != null) {
@ -123,7 +121,7 @@ public class Agent {
static class BooleanWrapper { static class BooleanWrapper {
boolean value; boolean value;
public BooleanWrapper(boolean value) { BooleanWrapper(boolean value) {
this.value = value; this.value = value;
} }