Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projet-part2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mamadu-lamarana Bah
projet-part2
Commits
3ebebc52
Commit
3ebebc52
authored
1 year ago
by
Mamadu-lamarana Bah
Browse files
Options
Downloads
Patches
Plain Diff
remove commented code
parent
7f728a2e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gson/gson/src/main/java/com/google/gson/Gson.java
+1
-1
1 addition, 1 deletion
gson/gson/src/main/java/com/google/gson/Gson.java
gson/gson/src/main/java/com/google/gson/TypeAdapter.java
+1
-20
1 addition, 20 deletions
gson/gson/src/main/java/com/google/gson/TypeAdapter.java
with
2 additions
and
21 deletions
gson/gson/src/main/java/com/google/gson/Gson.java
+
1
−
1
View file @
3ebebc52
...
@@ -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.
*
*
...
...
This diff is collapsed.
Click to expand it.
gson/gson/src/main/java/com/google/gson/TypeAdapter.java
+
1
−
20
View file @
3ebebc52
...
@@ -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
()
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment