deleted unused variable.

This commit is contained in:
Inderjeet Singh 2008-10-20 19:51:38 +00:00
parent 0acb151941
commit 95861175a8

View File

@ -225,7 +225,6 @@ public class DefaultTypeAdaptersTest extends TestCase {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public void testDateDeserializationWithPattern() throws Exception { public void testDateDeserializationWithPattern() throws Exception {
String pattern = "yyyy-MM-dd"; String pattern = "yyyy-MM-dd";
DateFormat formatter = new SimpleDateFormat(pattern);
Gson gson = new GsonBuilder().setDateFormat(DateFormat.FULL).setDateFormat(pattern).create(); Gson gson = new GsonBuilder().setDateFormat(DateFormat.FULL).setDateFormat(pattern).create();
Date now = new Date(); Date now = new Date();
String json = gson.toJson(now); String json = gson.toJson(now);