Skip to content

Commit

Permalink
Merge pull request #685 from google/threadsafe-javadoc
Browse files Browse the repository at this point in the history
Updated Gson Javadoc to indicate thread-safety.
  • Loading branch information
inder123 committed Aug 10, 2015
2 parents 09839be + 0c4ae01 commit b4978a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gson/src/main/java/com/google/gson/Gson.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
/**
* This is the main class for using Gson. Gson is typically used by first constructing a
* Gson instance and then invoking {@link #toJson(Object)} or {@link #fromJson(String, Class)}
* methods on it.
* methods on it. Gson instances are Thread-safe so you can reuse them freely across multiple
* threads.
*
* <p>You can create a Gson instance by invoking {@code new Gson()} if the default configuration
* is all you need. You can also use {@link GsonBuilder} to build a Gson instance with various
Expand Down

0 comments on commit b4978a8

Please sign in to comment.