--- a/src/java.base/share/classes/java/security/PermissionCollection.java Thu Oct 17 20:27:44 2019 +0100
+++ b/src/java.base/share/classes/java/security/PermissionCollection.java Thu Oct 17 20:53:35 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -96,6 +96,7 @@
public abstract class PermissionCollection implements java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -6727011328946861783L;
// when set, add will throw an exception.
@@ -106,9 +107,9 @@
*
* @param permission the Permission object to add.
*
- * @exception SecurityException - if this PermissionCollection object
+ * @throws SecurityException if this PermissionCollection object
* has been marked readonly
- * @exception IllegalArgumentException - if this PermissionCollection
+ * @throws IllegalArgumentException if this PermissionCollection
* object is a homogeneous collection and the permission
* is not of the correct type.
*/