Revert "Serializable attribute must be on the same line as the class declaration"

This reverts commit 10438f6eba82cae4e4fe5b7ea3c98dc08be4a937.