aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/bytecode/AsmUtil.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-01-10 01:14:46 +0100
committerRoel Spilker <r.spilker@gmail.com>2012-01-10 01:14:46 +0100
commit98875218ea3f6ba68f7f83d3e0458c9901db00f3 (patch)
tree95fd10b4972053d929b04596b67dcf4632908741 /src/core/lombok/bytecode/AsmUtil.java
parent57fbcc1a7e17712b46cfb8f6da4b3500d46aac6d (diff)
parenta59a2c482b504a47a84b72313acfee361c516dbf (diff)
downloadlombok-98875218ea3f6ba68f7f83d3e0458c9901db00f3.tar.gz
lombok-98875218ea3f6ba68f7f83d3e0458c9901db00f3.tar.bz2
lombok-98875218ea3f6ba68f7f83d3e0458c9901db00f3.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/core/lombok/bytecode/AsmUtil.java')
-rw-r--r--src/core/lombok/bytecode/AsmUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/bytecode/AsmUtil.java b/src/core/lombok/bytecode/AsmUtil.java
index 57439c75..b0606a18 100644
--- a/src/core/lombok/bytecode/AsmUtil.java
+++ b/src/core/lombok/bytecode/AsmUtil.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 The Project Lombok Authors.
+ * Copyright (C) 2010-2012 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -21,11 +21,11 @@
*/
package lombok.bytecode;
-import org.objectweb.asm.ClassAdapter;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
+import org.objectweb.asm.Opcodes;
import org.objectweb.asm.commons.JSRInlinerAdapter;
class AsmUtil {
@@ -38,7 +38,7 @@ class AsmUtil {
ClassReader reader = new ClassReader(byteCode);
ClassWriter writer = new FixedClassWriter(reader, 0);
- ClassVisitor visitor = new ClassAdapter(writer) {
+ ClassVisitor visitor = new ClassVisitor(Opcodes.ASM4, writer) {
@Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
return new JSRInlinerAdapter(super.visitMethod(access, name, desc, signature, exceptions), access, name, desc, signature, exceptions);
}