mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
pointless boxing
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23307 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
07c7d15660
commit
fdba356ffd
1 file changed
+3
-3
@@ -70,7 +70,7 @@ public class AuthorizationMatrixProperty extends JobProperty<Job<?, ?>> {
|
||||
return useProjectSecurity;
|
||||
}
|
||||
|
||||
public void setUseProjectSecurity(boolean useProjectSecurity) {
|
||||
protected void setUseProjectSecurity(boolean useProjectSecurity) {
|
||||
this.useProjectSecurity = useProjectSecurity;
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ public class AuthorizationMatrixProperty extends JobProperty<Job<?, ?>> {
|
||||
AuthorizationMatrixProperty amp = (AuthorizationMatrixProperty) source;
|
||||
|
||||
writer.startNode("useProjectSecurity");
|
||||
context.convertAnother(Boolean.valueOf(amp.isUseProjectSecurity()));
|
||||
context.convertAnother(amp.isUseProjectSecurity());
|
||||
writer.endNode();
|
||||
|
||||
for (Entry<Permission, Set<String>> e : amp.grantedPermissions
|
||||
@@ -252,7 +252,7 @@ public class AuthorizationMatrixProperty extends JobProperty<Job<?, ?>> {
|
||||
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()) {
|
||||
|
||||
Reference in new issue
Block a user