diff options
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/tutorial.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index b6876d4c..9e6c8366 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -1043,7 +1043,7 @@ adds a new field <code>hiddenValue</code> to <code>java.lang.String</code>: <ul><pre>ClassPool pool = ClassPool.getDefault(); CtClass cc = pool.get("java.lang.String"); cc.addField(new CtField(CtClass.intType, "hiddenValue", cc)); -pool.writeFile("java.lang.String", ".");</pre></ul> +cc.writeFile("java.lang.String", ".");</pre></ul> <p>This program produces a file <code>"./java/lang/String.class"</code>. |