If I inherit from a serializable class, but I do not want my class to be serializable; what's the best way to strictly ban serialization?
If there was a method in java.io.Serializable, maybe I could make an exception, but Serializable is empty.
source
share