Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayi committed Jun 29, 2020
1 parent 509d374 commit e331226
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Download the fatJar or view the changelog on the **[Release Page](https://github

## Gradle
```shell
compile group: 'com.deepoove', name: 'swagger-diff', version: '1.2.1'
compile group: 'com.deepoove', name: 'swagger-diff', version: '1.2.2'
```

## Usage
Expand All @@ -81,11 +81,9 @@ String html = new HtmlRender("Changelog",
.render(diff);

try {
FileWriter fw = new FileWriter(
"testNewApi.html");
FileWriter fw = new FileWriter("testNewApi.html");
fw.write(html);
fw.close();

} catch (IOException e) {
e.printStackTrace();
}
Expand All @@ -96,11 +94,9 @@ try {
```java
String render = new MarkdownRender().render(diff);
try {
FileWriter fw = new FileWriter(
"testDiff.md");
FileWriter fw = new FileWriter("testDiff.md");
fw.write(render);
fw.close();

} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit e331226

Please sign in to comment.