Skip to content
Snippets Groups Projects
Commit 3ebebc52 authored by Mamadu-lamarana Bah's avatar Mamadu-lamarana Bah :speech_balloon:
Browse files

remove commented code

parent 7f728a2e
No related branches found
No related tags found
No related merge requests found
...@@ -408,7 +408,7 @@ public final class Gson { ...@@ -408,7 +408,7 @@ public final class Gson {
public GsonBuilder newBuilder() { public GsonBuilder newBuilder() {
return new GsonBuilder(this); return new GsonBuilder(this);
} }
/** /**
* Returns the field naming strategy used by this Gson instance. * Returns the field naming strategy used by this Gson instance.
* *
......
...@@ -98,26 +98,7 @@ import java.io.Writer; ...@@ -98,26 +98,7 @@ import java.io.Writer;
* *
* @since 2.1 * @since 2.1
*/ */
// non-Javadoc:
//
// <h2>JSON Conversion</h2>
// <p>A type adapter registered with Gson is automatically invoked while serializing
// or deserializing JSON. However, you can also use type adapters directly to serialize
// and deserialize JSON. Here is an example for deserialization: <pre>{@code
// String json = "{'origin':'0,0','points':['1,2','3,4']}";
// TypeAdapter<Graph> graphAdapter = gson.getAdapter(Graph.class);
// Graph graph = graphAdapter.fromJson(json);
// }</pre>
// And an example for serialization: <pre>{@code
// Graph graph = new Graph(...);
// TypeAdapter<Graph> graphAdapter = gson.getAdapter(Graph.class);
// String json = graphAdapter.toJson(graph);
// }</pre>
//
// <p>Type adapters are <strong>type-specific</strong>. For example, a {@code
// TypeAdapter<Date>} can convert {@code Date} instances to JSON and JSON to
// instances of {@code Date}, but cannot convert any other types.
//
public abstract class TypeAdapter<T> { public abstract class TypeAdapter<T> {
public TypeAdapter() {} public TypeAdapter() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment