changeset 53913:4074a3d599cd

8159525: Add @FunctionalInterface annotation to PrivilegedAction and PrivilegedExceptionAction Reviewed-by: clanger
author mullan
date Mon, 25 Feb 2019 08:25:23 -0500
parents 91f06b86c0da
children ee4488381c78
files src/java.base/share/classes/java/security/PrivilegedAction.java src/java.base/share/classes/java/security/PrivilegedExceptionAction.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/security/PrivilegedAction.java	Mon Feb 25 13:50:32 2019 +0530
+++ b/src/java.base/share/classes/java/security/PrivilegedAction.java	Mon Feb 25 08:25:23 2019 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2013, 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
@@ -39,7 +39,7 @@
  * @see AccessController#doPrivileged(PrivilegedAction)
  * @see PrivilegedExceptionAction
  */
-
+@FunctionalInterface
 public interface PrivilegedAction<T> {
     /**
      * Performs the computation.  This method will be called by
--- a/src/java.base/share/classes/java/security/PrivilegedExceptionAction.java	Mon Feb 25 13:50:32 2019 +0530
+++ b/src/java.base/share/classes/java/security/PrivilegedExceptionAction.java	Mon Feb 25 08:25:23 2019 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2013, 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
@@ -42,7 +42,7 @@
  *                                              AccessControlContext)
  * @see PrivilegedAction
  */
-
+@FunctionalInterface
 public interface PrivilegedExceptionAction<T> {
     /**
      * Performs the computation.  This method will be called by