mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8159525: Add @FunctionalInterface annotation to PrivilegedAction and PrivilegedExceptionAction
Reviewed-by: clanger
This commit is contained in:
parent
8b01c4b53d
commit
677aaed765
2 changed files with 4 additions and 4 deletions
|
@ -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 @@ package java.security;
|
|||
* @see AccessController#doPrivileged(PrivilegedAction)
|
||||
* @see PrivilegedExceptionAction
|
||||
*/
|
||||
|
||||
@FunctionalInterface
|
||||
public interface PrivilegedAction<T> {
|
||||
/**
|
||||
* Performs the computation. This method will be called by
|
||||
|
|
|
@ -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 @@ package java.security;
|
|||
* AccessControlContext)
|
||||
* @see PrivilegedAction
|
||||
*/
|
||||
|
||||
@FunctionalInterface
|
||||
public interface PrivilegedExceptionAction<T> {
|
||||
/**
|
||||
* Performs the computation. This method will be called by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue