Skip to content

Commit

Permalink
fix oops
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Dec 11, 2024
1 parent 0a2c86e commit 1e97836
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
module org.elasticsearch.entitlement.instrumentation {
requires org.objectweb.asm;
requires org.elasticsearch.entitlement;
requires java.logging;

provides InstrumentationService with InstrumentationServiceImpl;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.logging.LogManager;
import java.util.stream.Stream;

import static org.objectweb.asm.ClassWriter.COMPUTE_FRAMES;
Expand Down Expand Up @@ -156,7 +155,7 @@ public MethodVisitor visitMethod(int access, String name, String descriptor, Str
var key = new MethodKey(className, name, Stream.of(Type.getArgumentTypes(descriptor)).map(Type::getInternalName).toList());
var instrumentationMethod = checkMethods.get(key);
if (instrumentationMethod != null) {
System.out.println("Will instrument method " + name);
// LOGGER.debug("Will instrument method {}", key);
return new EntitlementMethodVisitor(Opcodes.ASM9, mv, isStatic, isCtor, descriptor, instrumentationMethod);
} else {
// LOGGER.trace("Will not instrument method {}", key);
Expand Down

0 comments on commit 1e97836

Please sign in to comment.