< prev index next >
src/java.base/share/classes/java/text/AttributedCharacterIterator.java
Print this page
@@ -151,10 +151,11 @@
*
* @return the resolved {@code Attribute} object
* @throws InvalidObjectException if the object to resolve is not
* an instance of {@code Attribute}
*/
+ @java.io.Serial
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != Attribute.class) {
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
}
@@ -192,10 +193,11 @@
* @see Annotation
*/
public static final Attribute INPUT_METHOD_SEGMENT = new Attribute("input_method_segment");
// make sure the serial version doesn't change between compiler versions
+ @java.io.Serial
private static final long serialVersionUID = -9142742483513960612L;
};
/**
< prev index next >