< prev index next >
src/java.base/share/classes/java/util/regex/Pattern.java
Print this page
*** 933,942 ****
--- 933,943 ----
* and the flags, which are all that is needed to recompile the pattern
* when it is deserialized.
*/
/** use serialVersionUID from Merlin b59 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 5073258162644648461L;
/**
* The original regular-expression pattern string.
*
*** 1374,1383 ****
--- 1375,1385 ----
/**
* Recompile the Pattern instance from a stream. The original pattern
* string is read in and the object tree is recompiled from it.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in all fields
s.defaultReadObject();
< prev index next >