class SqlDateTypeAdapter extends TypeAdapter<java.sql.Date> {
  static final TypeAdapterFactory FACTORY =
      new TypeAdapterFactory() {
        @SuppressWarnings("unchecked") // we use a runtime check to make sure the 'T's equal
        @Override
        public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) {
          return typeToken.getRawType() == java.sql.Date.class
              ? (TypeAdapter<T>) new SqlDateTypeAdapter()
              : null;
        }
      };

  private final DateFormat format = new SimpleDateFormat("MMM d, yyyy");

  private SqlDateTypeAdapter() {}

  @Override
  public java.sql.Date read(JsonReader in) throws IOException {
    if (in.peek() == JsonToken.NULL) {
      in.nextNull();
      return null;
    }
    String s = in.nextString();
    synchronized (this) {
      TimeZone originalTimeZone = format.getTimeZone(); // Save the original time zone
      try {
        Date utilDate = format.parse(s);
        return new java.sql.Date(utilDate.getTime());
      } catch (ParseException e) {
        throw new JsonSyntaxException(
            "Failed parsing '" + s + "' as SQL Date; at path " + in.getPreviousPath(), e);
      } finally {
        format.setTimeZone(originalTimeZone); // Restore the original time zone after parsing
      }
    }
  }

  @Override
  public void write(JsonWriter out, java.sql.Date value) throws IOException {<FILL_FUNCTION_BODY>}
}

    if (value == null) {
      out.nullValue();
      return;
    }
    String dateString;
    synchronized (this) {
      dateString = format.format(value);
    }
    out.value(dateString);
  
<methods>public void <init>() ,public final java.sql.Date fromJson(java.io.Reader) throws java.io.IOException,public final java.sql.Date fromJson(java.lang.String) throws java.io.IOException,public final java.sql.Date fromJsonTree(com.google.gson.JsonElement) ,public final TypeAdapter<java.sql.Date> nullSafe() ,public abstract java.sql.Date read(com.google.gson.stream.JsonReader) throws java.io.IOException,public final void toJson(java.io.Writer, java.sql.Date) throws java.io.IOException,public final java.lang.String toJson(java.sql.Date) ,public final com.google.gson.JsonElement toJsonTree(java.sql.Date) ,public abstract void write(com.google.gson.stream.JsonWriter, java.sql.Date) throws java.io.IOException<variables>