8000 Add Gson.DEFAULT constant · Issue #2863 · google/gson · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add Gson.DEFAULT constant #2863
Open
@MukjepScarlet

Description

@MukjepScarlet

Problem solved by the feature

No actual problem

Feature description

This is in order to provide a DEFAULT singleton instance for Gson. I saw so many programmers write new Gson() anywhere. We might directly provide a default constant to prevent this. Maybe also make Gson.<init>() deprecated because we can use Gson.DEFAULT instead.

Alternatives / workarounds

No actual bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0