File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ After taking huge effort to look for example on the internet and found nothing w
99
1010E.g.:
1111
12- StringBuffer sourceCode = new StringBuffer ();
12+ StringBuilder sourceCode = new StringBuilder ();
1313 sourceCode.append("package org.mdkt;\n");
1414 sourceCode.append("public class HelloClass {\n");
1515 sourceCode.append(" public String hello() { return \"hello\"; }");
1616 sourceCode.append("}");
1717
1818 Class<?> helloClass = InMemoryJavaCompiler.newInstance().compile("org.mdkt.HelloClass", sourceCode.toString());
1919
20+ If you are looking for more examples, please look at unit tests in the ` src/test/java ` folder
21+
2022Artifact is pushed to Sonatype OSS Releases Repository
2123
2224 https://oss.sonatype.org/content/repositories/releases/
You can’t perform that action at this time.
0 commit comments