RFR: 8267485: Remove the dependency on SecurityManager in JceSecurityManager.java [v3]

Weijun Wang weijun at openjdk.java.net
Thu Jun 3 21:56:01 UTC 2021


On Thu, 3 Jun 2021 21:50:32 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> The latter is probably better so you don't have to move the code; @wangweij used this technique quite a bit for JEP 411 refactoring, see https://github.com/openjdk/jdk/commit/508cec7535cd0ad015d566389bc9e5f53ce4103b
>
> @seanjmullan , that's what I ended up doing.  I'll have a new revision out as soon as the mach5 finishes.

In this case, I name the variable `tmp`. There are cases where the action is a `PrivlegedAction<Void>` and you still have to create a variable for the return value, and then I call it `dummy`.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4150



More information about the security-dev mailing list