From b489f4fb01ad2558319bde03fcf3103ede56d193 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Fri, 11 Mar 2011 22:20:39 +0000 Subject: [PATCH] marked default type adapters as final classes --- .../com/google/gson/DefaultTypeAdapters.java | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java b/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java index 9c8fc18f..211eceb7 100644 --- a/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java +++ b/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java @@ -287,7 +287,7 @@ final class DefaultTypeAdapters { return DEFAULT_INSTANCE_CREATORS; } - static class DefaultDateTypeAdapter implements JsonSerializer, JsonDeserializer { + static final class DefaultDateTypeAdapter implements JsonSerializer, JsonDeserializer { private final DateFormat enUsFormat; private final DateFormat localFormat; private final DateFormat iso8601Format; @@ -310,7 +310,7 @@ final class DefaultTypeAdapters { DateFormat.getDateTimeInstance(dateStyle, timeStyle)); } - public DefaultDateTypeAdapter(DateFormat enUsFormat, DateFormat localFormat) { + DefaultDateTypeAdapter(DateFormat enUsFormat, DateFormat localFormat) { this.enUsFormat = enUsFormat; this.localFormat = localFormat; this.iso8601Format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US); @@ -357,7 +357,7 @@ final class DefaultTypeAdapters { } } - static class DefaultJavaSqlDateTypeAdapter implements JsonSerializer, + static final class DefaultJavaSqlDateTypeAdapter implements JsonSerializer, JsonDeserializer { private final DateFormat format; DefaultJavaSqlDateTypeAdapter() { @@ -388,7 +388,7 @@ final class DefaultTypeAdapters { } } - static class DefaultTimestampDeserializer implements JsonDeserializer { + static final class DefaultTimestampDeserializer implements JsonDeserializer { public Timestamp deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { Date date = context.deserialize(json, Date.class); @@ -396,7 +396,7 @@ final class DefaultTypeAdapters { } } - static class DefaultTimeTypeAdapter implements JsonSerializer