< prev index next >

src/java.base/share/classes/java/lang/Enum.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 57,68 **** * @author Josh Bloch * @author Neal Gafter * @see Class#getEnumConstants() * @see java.util.EnumSet * @see java.util.EnumMap - * @jls 8.9 Enum Types - * @jls 8.9.3 Enum Members * @since 1.5 */ @SuppressWarnings("serial") // No serialVersionUID needed due to // special-casing of enum types. public abstract class Enum<E extends Enum<E>> --- 57,66 ----
*** 283,293 **** private void readObjectNoData() throws ObjectStreamException { throw new InvalidObjectException("can't deserialize enum"); } /** ! * A <a href="{@docRoot}/java.base/java/lang/constant/package-summary.html#nominal">nominal descriptor</a> for an * {@code enum} constant. * * @param <E> the type of the enum constant * * @since 12 --- 281,291 ---- private void readObjectNoData() throws ObjectStreamException { throw new InvalidObjectException("can't deserialize enum"); } /** ! * A <a href="package-summary.html#nominal">nominal descriptor</a> for an * {@code enum} constant. * * @param <E> the type of the enum constant * * @since 12
< prev index next >