Skip to content

Commit

Permalink
Update README.asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Nov 2, 2015
1 parent 9fcb5d0 commit 1155570
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ javaClass.addField()
.setStatic(true)
.setFinal(true);

javaClass.addProperty("Integer", "id").setMutable(false);
javaClass.addProperty("String", "firstName");
javaClass.addProperty(Integer.class, "id").setMutable(false);
javaClass.addProperty(String.class, "firstName");
javaClass.addProperty("String", "lastName");

javaClass.addMethod()
Expand All @@ -93,7 +93,6 @@ Will produce:
package com.company.example;

import java.io.Serializable;
import java.lang.Integer;

public class Person implements Serializable {

Expand Down Expand Up @@ -193,7 +192,7 @@ JavaClassSource anotherClass = (JavaClassSource) unit.getTopLevelTypes().get(1);
Maven Artifacts
===============
Download http://search.maven.org/#search%7Cga%7C1%7Cg:%22org.jboss.forge.roaster%22[the latest .jar] or depend via Maven:
Download http://search.maven.org/#search%7Cga%7C1%7Cg:%22org.jboss.forge.roaster%22[the latest .jar] or dependency via Maven:
```xml
<dependency>
Expand Down

0 comments on commit 1155570

Please sign in to comment.