From cc54e4dbdd16c6d269eb6686f472999445cba22b Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Thu, 5 Nov 2015 10:46:54 -0800 Subject: [PATCH] made methods static --- gson/src/main/java/com/google/gson/Gson.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index b1b87455..0e6f46af 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -311,7 +311,7 @@ public final class Gson { } } - private TypeAdapter longAdapter(LongSerializationPolicy longSerializationPolicy) { + private static TypeAdapter longAdapter(LongSerializationPolicy longSerializationPolicy) { if (longSerializationPolicy == LongSerializationPolicy.DEFAULT) { return TypeAdapters.LONG; } @@ -333,7 +333,7 @@ public final class Gson { }; } - private TypeAdapter atomicLongAdapter(final TypeAdapter longAdapter) { + private static TypeAdapter atomicLongAdapter(final TypeAdapter longAdapter) { return new TypeAdapter() { @Override public void write(JsonWriter out, AtomicLong value) throws IOException { longAdapter.write(out, value.get());