code example in README.md

This commit is contained in:
Sander Hautvast 2020-11-16 18:02:13 +01:00
parent 27167b58fa
commit e493ad32a0

View file

@ -5,7 +5,7 @@ project status: early stage
* At this moment a complete compile cycle is guaranteed (unittested) for a really simple class.
```
BeeSource createEmptyClass() throws ClassNotFoundException {
BeeSource createEmptyClass() {
return BeeSource.builder()
.withClassFileVersion(Version.V14)
.withPackage("nl.sander.beejava.test")
@ -16,7 +16,7 @@ BeeSource createEmptyClass() throws ClassNotFoundException {
.build();
}
BeeConstructor createDefaultConstructor() throws ClassNotFoundException {
BeeConstructor createDefaultConstructor() {
return BeeConstructor.builder()
.withAccessFlags(MethodAccessFlags.PUBLIC)
.withCode(