jdk/src/share/classes/sun/security/acl/GroupImpl.java
changeset 7970 af1579474d16
parent 5506 202f599c92aa
child 9035 1255eb81cc2f
equal deleted inserted replaced
7969:1a6282ab0d2a 7970:af1579474d16
    32 /**
    32 /**
    33  * This class implements a group of principals.
    33  * This class implements a group of principals.
    34  * @author      Satish Dharmaraj
    34  * @author      Satish Dharmaraj
    35  */
    35  */
    36 public class GroupImpl implements Group {
    36 public class GroupImpl implements Group {
    37     private Vector<Principal> groupMembers = new Vector<Principal>(50, 100);
    37     private Vector<Principal> groupMembers = new Vector<>(50, 100);
    38     private String group;
    38     private String group;
    39 
    39 
    40     /**
    40     /**
    41      * Constructs a Group object with no members.
    41      * Constructs a Group object with no members.
    42      * @param groupName the name of the group
    42      * @param groupName the name of the group
   129         // principal.
   129         // principal.
   130         //
   130         //
   131         if (groupMembers.contains(member)) {
   131         if (groupMembers.contains(member)) {
   132             return true;
   132             return true;
   133         } else {
   133         } else {
   134             Vector<Group> alreadySeen = new Vector<Group>(10);
   134             Vector<Group> alreadySeen = new Vector<>(10);
   135             return isMemberRecurse(member, alreadySeen);
   135             return isMemberRecurse(member, alreadySeen);
   136         }
   136         }
   137     }
   137     }
   138 
   138 
   139     /**
   139     /**