This commit is contained in:
Looly
2023-03-15 16:22:10 +08:00
parent d9cd597256
commit 0797ceb12d
2 changed files with 8 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ public class SerializeUtil {
return null;
}
final FastByteArrayOutputStream byteOut = new FastByteArrayOutputStream();
IoUtil.writeObjects(byteOut, false, (Serializable) obj);
IoUtil.writeObjects(byteOut, false, obj);
return byteOut.toByteArray();
}