fix up Java API for serializers (both use and implement)

This commit is contained in:
Roland 2012-02-10 12:45:22 +01:00
parent d2f28a06cd
commit 09897459d6
4 changed files with 24 additions and 14 deletions

View file

@ -44,9 +44,8 @@ public class SerializationDocTestBase {
// "fromBinary" deserializes the given array,
// using the type hint (if any, see "includeManifest" above)
// into the optionally provided classLoader.
@Override public Object fromBinary(byte[] bytes,
Class clazz) {
@Override public Object fromBinaryJava(byte[] bytes,
Class<?> clazz) {
// Put your code that deserializes here
//#...
return null;
@ -74,7 +73,7 @@ public class SerializationDocTestBase {
// Turn it back into an object,
// the nulls are for the class manifest and for the classloader
String back = (String)serializer.fromBinary(bytes, Option.<Class<?>>none().asScala());
String back = (String)serializer.fromBinary(bytes);
// Voilá!
assertEquals(original, back);