Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interning annotations #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unwanted annotations
PRITI1999 committed Jun 29, 2020
commit 14d2de02a6818e04cbfa88aec6fee2010e3037d3
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import org.checkerframework.checker.nullness.qual.Nullable;

/**
* This type adapter supports three subclasses of date: Date, Timestamp, and
@@ -121,7 +120,7 @@ public void write(JsonWriter out, Date value) throws IOException {
}

@Override
public @Nullable Date read(JsonReader in) throws IOException {
public Date read(JsonReader in) throws IOException {
if (in.peek() == JsonToken.NULL) {
in.nextNull();
return null;