diff --git a/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java b/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java index a2f4fdb99bfd8574b998c031b103dd6dfda46d39..70aacd07d03048ec0bb357eccfe26a4b9c94551c 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()) {