From fdba356ffdf2280486bb74d07f0dafcf981b576d Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 29 Oct 2009 00:23:25 +0000 Subject: [PATCH] pointless boxing git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23307 71c3de6d-444a-0410-be80-ed276b4c234a --- .../java/hudson/security/AuthorizationMatrixProperty.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java b/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java index a2f4fdb99b..70aacd07d0 100644 --- a/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java +++ b/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java @@ -70,7 +70,7 @@ public class AuthorizationMatrixProperty extends JobProperty> { return useProjectSecurity; } - public void setUseProjectSecurity(boolean useProjectSecurity) { + protected void setUseProjectSecurity(boolean useProjectSecurity) { this.useProjectSecurity = useProjectSecurity; } @@ -229,7 +229,7 @@ public class AuthorizationMatrixProperty extends JobProperty> { AuthorizationMatrixProperty amp = (AuthorizationMatrixProperty) source; writer.startNode("useProjectSecurity"); - context.convertAnother(Boolean.valueOf(amp.isUseProjectSecurity())); + context.convertAnother(amp.isUseProjectSecurity()); writer.endNode(); for (Entry> e : amp.grantedPermissions @@ -252,7 +252,7 @@ public class AuthorizationMatrixProperty extends JobProperty> { if (prop!=null && prop.equals("useProjectSecurity")) { reader.moveDown(); Boolean useSecurity = (Boolean) context.convertAnother(as, Boolean.class); - as.setUseProjectSecurity(useSecurity.booleanValue()); + as.setUseProjectSecurity(useSecurity); reader.moveUp(); } while (reader.hasMoreChildren()) { -- GitLab