Skip to content

Commit 0acf99d

Browse files
committed
Merge pull request #28 from jmini/readme_fix
Fixes in README.asciidoc
2 parents e593235 + 6c57f98 commit 0acf99d

1 file changed

Lines changed: 17 additions & 20 deletions

File tree

README.asciidoc

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,15 @@ javaClass.addProperty("Integer", "id").setMutable(false);
7777
javaClass.addProperty("String", "fistName");
7878
javaClass.addProperty("String", "lastName");
7979

80-
javaClass.addMethod().setConstructor(true).setPublic().setBody("this.id = id;").addParameter(Integer.class, "id");
80+
javaClass.addMethod()
81+
.setConstructor(true)
82+
.setPublic()
83+
.setBody("this.id = id;")
84+
.addParameter(Integer.class, "id");
8185
```
8286

8387
Will produce:
88+
8489
```java
8590
package com.company.example;
8691

@@ -130,8 +135,11 @@ public class Person implements Serializable
130135
Java Source Code Modification API
131136
---------------------------------
132137
138+
Of course it is possible to mix both approaches (parser and writer) to modify Java code programmatically:
139+
133140
```java
134-
JavaClassSource javaClass = Roaster.parse(JavaClassSource.class, "public class SomeClass {}");
141+
JavaClassSource javaClass =
142+
Roaster.parse(JavaClassSource.class, "public class SomeClass {}");
135143
javaClass.addMethod()
136144
.setPublic()
137145
.setStatic(true)
@@ -144,9 +152,8 @@ System.out.println(javaClass);
144152
145153
Maven Artifacts
146154
===============
147-
Of course it is possible to mix both approaches (parser and writer) to modify Java code programmatically:
148155
149-
Download [the latest .jar][1] or depend via Maven:
156+
Download http://search.maven.org/#search%7Cga%7C1%7Cg:%22org.jboss.forge.roaster%22[the latest .jar] or depend via Maven:
150157
151158
```xml
152159
<dependency>
@@ -164,36 +171,26 @@ Download [the latest .jar][1] or depend via Maven:
164171
Issue tracker
165172
=============
166173
167-
[ROASTER on JBossDeveloper][2]. You might need to log in, in order to view the issues.
174+
https://issues.jboss.org/browse/ROASTER[ROASTER on JBossDeveloper]. You might need to log in, in order to view the issues.
168175
169176
170177
Get in touch
171178
============
172179
173-
Roaster uses the same forum and mailing lists as the [JBoss Forge][3] project. See the [JBoss Forge Community][4] page.
180+
Roaster uses the same forum and mailing lists as the http://forge.jboss.org/[JBoss Forge] project. See the http://forge.jboss.org/community[JBoss Forge Community] page.
174181
175-
* [User forums][5]
176-
* [Developer forums][6]
182+
* https://developer.jboss.org/en/forge[User forums]
183+
* https://developer.jboss.org/en/forge/dev[Developer forums]
177184
178185
179186
Related / Similar projects
180187
==========================
181188
182189
For the writer part:
183190
184-
* [square/javawriter][7]
191+
* https://github.com/square/javawriter[square/javawriter]
185192
186193
187194
License
188195
=======
189-
[Eclipse Public License - v 1.0][8]
190-
191-
192-
[1]: http://search.maven.org/#search%7Cga%7C1%7Cg:%22org.jboss.forge.roaster%22
193-
[2]: https://issues.jboss.org/browse/ROASTER
194-
[3]: http://forge.jboss.org/
195-
[4]: http://forge.jboss.org/community
196-
[5]: https://developer.jboss.org/en/forge
197-
[6]: https://developer.jboss.org/en/forge/dev
198-
[7]: https://github.com/square/javawriter
199-
[8]: http://www.eclipse.org/legal/epl-v10.html
196+
http://www.eclipse.org/legal/epl-v10.html[Eclipse Public License - v 1.0]

0 commit comments

Comments
 (0)