diff options
Diffstat (limited to 'java/security/acl')
| -rw-r--r-- | java/security/acl/Acl.java | 3 | ||||
| -rw-r--r-- | java/security/acl/AclEntry.java | 16 | ||||
| -rw-r--r-- | java/security/acl/Permission.java | 4 |
3 files changed, 16 insertions, 7 deletions
diff --git a/java/security/acl/Acl.java b/java/security/acl/Acl.java index 10a59fdf5..dd1b60193 100644 --- a/java/security/acl/Acl.java +++ b/java/security/acl/Acl.java @@ -1,5 +1,5 @@ /* Acl.java -- An access control list - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 2014 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -149,5 +149,6 @@ public interface Acl extends Owner * * @return A <code>String</code> representation of this ACL */ + @Override String toString(); } diff --git a/java/security/acl/AclEntry.java b/java/security/acl/AclEntry.java index 47154b285..a0982da92 100644 --- a/java/security/acl/AclEntry.java +++ b/java/security/acl/AclEntry.java @@ -1,5 +1,5 @@ /* AclEntry.java -- An entry in an ACL list. - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 2014 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -72,7 +72,8 @@ public interface AclEntry extends Cloneable * * @param user The <code>Principal</code> for this ACL entry * - * @return <code>true</code> if the <code>Principal</code> was successfully set or <code>false</code> if this entry already has a <code>Principal</code>. + * @return <code>true</code> if the <code>Principal</code> was successfully + * set or <code>false</code> if this entry already has a <code>Principal</code>. */ boolean setPrincipal(Principal user); @@ -96,7 +97,8 @@ public interface AclEntry extends Cloneable * * @param permission The <code>Permission</code> to add * - * @return <code>true</code> if the permission was added or <code>false</code> if it was already set for this entry + * @return <code>true</code> if the permission was added or + * <code>false</code> if it was already set for this entry */ boolean addPermission(Permission permission); @@ -105,7 +107,9 @@ public interface AclEntry extends Cloneable * * @param perm The <code>Permission</code> to delete from this ACL entry. * - * @return <code>true</code> if the permission was successfully deleted or <code>false</code> if the permission was not part of this ACL to begin with + * @return <code>true</code> if the permission was successfully deleted + * or <code>false</code> if the permission was not part of this + * ACL to begin with */ boolean removePermission(Permission perm); @@ -115,7 +119,8 @@ public interface AclEntry extends Cloneable * * @param permission The <code>Permission</code> to test * - * @return <code>true</code> if this permission is associated with this entry or <code>false</code> otherwise + * @return <code>true</code> if this permission is associated + * with this entry or <code>false</code> otherwise */ boolean checkPermission(Permission permission); @@ -132,6 +137,7 @@ public interface AclEntry extends Cloneable * * @return A <code>String</code> representation of this object */ + @Override String toString(); /** diff --git a/java/security/acl/Permission.java b/java/security/acl/Permission.java index e5ba29138..663be09bd 100644 --- a/java/security/acl/Permission.java +++ b/java/security/acl/Permission.java @@ -1,5 +1,5 @@ /* Permission.java -- Information about an ACL permission - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 2014 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -56,6 +56,7 @@ public interface Permission * * @return <code>true</code> if the specified permission is the same as this one, <code>false</code> otherwise */ + @Override boolean equals (Object perm); /** @@ -63,5 +64,6 @@ public interface Permission * * @return A <code>String</code> representing this permission. */ + @Override String toString(); } |
