MCPcopy Create free account
hub / github.com/Asana/java-asana / getInstance

Method getInstance

src/main/java/com/asana/Json.java:35–43  ·  view source on GitHub ↗

@return Singleton instance of the Gson parser that handle Asana's date format (ISO 3339)

()

Source from the content-addressed store, hash-verified

33 * @return Singleton instance of the Gson parser that handle Asana's date format (ISO 3339)
34 */
35 static public Gson getInstance() {
36 if (instance == null) {
37 instance = new GsonBuilder()
38 .registerTypeAdapter(DateTime.class, new ISO3339DateDeserializer())
39 .setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
40 .create();
41 }
42 return instance;
43 }
44}

Callers 5

requestMethod · 0.95
executeRawMethod · 0.95
executeRawMethod · 0.95
InvalidTokenErrorMethod · 0.95
constructMessageMethod · 0.95

Calls 1

createMethod · 0.45

Tested by

no test coverage detected