Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 17f69e7

Browse files
committed
Update readme
1 parent b1f573c commit 17f69e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The entry will automatically add itself to the constant pool on creation.
2222
##### Adding methods
2323
Here comes the juicy part: methods. Adding a method is slightly more complex.
2424
```java
25-
Method m = new Method(new UTF8Entry(aClass.getConstantPool(), "yourMethodName"), new UTF8Entry(aClass.getConstantPool(), "(Lsome/Type;)V"));
25+
Method m = new Method(aClass.getConstantPool(), "yourMethodName", "(Lsome/Type;)V");
2626
m.setAccessFlags(MethodAccessFlags.PUBLIC);
2727
aClass.getMethods().add(m);
2828
```

0 commit comments

Comments
 (0)