diff options
Diffstat (limited to 'sample/Test.java')
-rw-r--r-- | sample/Test.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/Test.java b/sample/Test.java index 810b6b61..1e2b49c2 100644 --- a/sample/Test.java +++ b/sample/Test.java @@ -37,7 +37,7 @@ public class Test { CtMethod fMethod = cc.getDeclaredMethod("f"); CtMethod gMethod = CtNewMethod.copy(fMethod, "g", cc, null); cc.addMethod(gMethod); - pool.writeFile("sample.Test"); // update the class file + cc.writeFile(); // update the class file System.out.println("g() was added."); } } |