incorporated feedback from code review of r295
This commit is contained in:
parent
fc65667d2f
commit
de713614af
@ -286,11 +286,6 @@ public class CustomTypeAdaptersTest extends TestCase {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
gsonBuilder.registerTypeAdapter(byte[].class, new InstanceCreator<byte[]>() {
|
|
||||||
public byte[] createInstance(Type type) {
|
|
||||||
return new byte[0];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Gson gson = gsonBuilder.create();
|
Gson gson = gsonBuilder.create();
|
||||||
String json = "'0123456789'";
|
String json = "'0123456789'";
|
||||||
byte[] actual = gson.fromJson(json, byte[].class);
|
byte[] actual = gson.fromJson(json, byte[].class);
|
||||||
|
Loading…
Reference in New Issue
Block a user