diff -r 13588c901957 -r 9cf78a70fa4f src/java.base/share/classes/java/security/AllPermission.java --- a/src/java.base/share/classes/java/security/AllPermission.java Thu Oct 17 20:27:44 2019 +0100 +++ b/src/java.base/share/classes/java/security/AllPermission.java Thu Oct 17 20:53:35 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -58,6 +58,7 @@ public final class AllPermission extends Permission { + @java.io.Serial private static final long serialVersionUID = -2916474571451318075L; /** @@ -157,6 +158,7 @@ { // use serialVersionUID from JDK 1.2.2 for interoperability + @java.io.Serial private static final long serialVersionUID = -4023755556366636806L; private boolean all_allowed; // true if any all permissions have been added @@ -176,10 +178,10 @@ * * @param permission the Permission object to add. * - * @exception IllegalArgumentException - if the permission is not a + * @throws IllegalArgumentException if the permission is not an * AllPermission * - * @exception SecurityException - if this AllPermissionCollection object + * @throws SecurityException if this AllPermissionCollection object * has been marked readonly */