incorporated feedback from code review of r295

This commit is contained in:
Inderjeet Singh 2008-12-18 18:59:30 +00:00
parent fc65667d2f
commit de713614af

View File

@ -286,11 +286,6 @@ public class CustomTypeAdaptersTest extends TestCase {
return data;
}
});
gsonBuilder.registerTypeAdapter(byte[].class, new InstanceCreator<byte[]>() {
public byte[] createInstance(Type type) {
return new byte[0];
}
});
Gson gson = gsonBuilder.create();
String json = "'0123456789'";
byte[] actual = gson.fromJson(json, byte[].class);