From 712072621fb667d35efaf538e48c269ee515008b Mon Sep 17 00:00:00 2001 From: James Nord Date: Thu, 11 May 2017 11:41:29 +0100 Subject: [PATCH] Javadoc fix. The use of `_` as an identifier is discouraged in the JLS, therefor do not suggest its use in our javadoc. ref: http://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.27.1 > It is a compile-time error if a lambda parameter has the name _ (that is, a single underscore character). > The use of the variable name _ in any context is discouraged. Future versions of the Java programming language may reserve this name as a keyword and/or give it special semantics. --- core/src/main/java/hudson/security/ACL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/security/ACL.java b/core/src/main/java/hudson/security/ACL.java index 2febef6650..a2c463d97c 100644 --- a/core/src/main/java/hudson/security/ACL.java +++ b/core/src/main/java/hudson/security/ACL.java @@ -270,7 +270,7 @@ public abstract class ACL { *

* This makes impersonation much easier within code as it can now be used using the try with resources construct: *

-     *     try (ACLContext _ = ACL.as(auth)) {
+     *     try (ACLContext ctx = ACL.as(auth)) {
      *        ...
      *     }
      * 
@@ -292,7 +292,7 @@ public abstract class ACL { *

* This makes impersonation much easier within code as it can now be used using the try with resources construct: *

-     *     try (ACLContext _ = ACL.as(auth)) {
+     *     try (ACLContext ctx = ACL.as(auth)) {
      *        ...
      *     }
      * 
-- GitLab