forked from busjaeger/maven-timeline
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This goes with source reformat, so next commit will fix blame
- Loading branch information
Showing
9 changed files
with
498 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
src/main/java/io/takari/maven/timeline/TimelineSerializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package io.takari.maven.timeline; | ||
|
||
import java.io.Writer; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.GsonBuilder; | ||
import java.io.Writer; | ||
|
||
public class TimelineSerializer { | ||
|
||
private static Gson gson = new GsonBuilder().setPrettyPrinting().create(); | ||
public static void serialize(Writer writer, Timeline timeline) { | ||
gson.toJson(timeline, writer); | ||
} | ||
private static final Gson gson = new GsonBuilder().setPrettyPrinting().create(); | ||
|
||
public static void serialize(Writer writer, Timeline timeline) { | ||
gson.toJson(timeline, writer); | ||
} | ||
} |
Oops, something went wrong.