Package org.jenkinsci.remoting.util
Class AnonymousClassWarnings
java.lang.Object
org.jenkinsci.remoting.util.AnonymousClassWarnings
Issues warnings about attempts to (de-)serialize anonymous, local, or synthetic classes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Checks a class which is being either serialized or deserialized.static ObjectOutputStream
checkingObjectOutputStream
(OutputStream outputStream) LikeObjectOutputStream(OutputStream)
but appliescheck(java.lang.Class<?>)
when writing classes.
-
Method Details
-
check
Checks a class which is being either serialized or deserialized. A warning will only be printed once per class per JVM session. -
checkingObjectOutputStream
@NonNull public static ObjectOutputStream checkingObjectOutputStream(@NonNull OutputStream outputStream) throws IOException LikeObjectOutputStream(OutputStream)
but appliescheck(java.lang.Class<?>)
when writing classes.- Throws:
IOException
-