jdk/src/share/classes/com/sun/security/auth/SolarisNumericGroupPrincipal.java
changeset 25186 63e1a2ec30f5
parent 23010 6dadb192ad81
equal deleted inserted replaced
25185:3047e0a03066 25186:63e1a2ec30f5
   108      * @param primaryGroup true if the specified GID represents the
   108      * @param primaryGroup true if the specified GID represents the
   109      *                  primary group to which this user belongs.
   109      *                  primary group to which this user belongs.
   110      *
   110      *
   111      */
   111      */
   112     public SolarisNumericGroupPrincipal(long name, boolean primaryGroup) {
   112     public SolarisNumericGroupPrincipal(long name, boolean primaryGroup) {
   113         this.name = (new Long(name)).toString();
   113         this.name = Long.toString(name);
   114         this.primaryGroup = primaryGroup;
   114         this.primaryGroup = primaryGroup;
   115     }
   115     }
   116 
   116 
   117     /**
   117     /**
   118      * Return the user's group identification number (GID) for this
   118      * Return the user's group identification number (GID) for this
   135      *
   135      *
   136      * @return the user's group identification number (GID) for this
   136      * @return the user's group identification number (GID) for this
   137      *          <code>SolarisNumericGroupPrincipal</code> as a long.
   137      *          <code>SolarisNumericGroupPrincipal</code> as a long.
   138      */
   138      */
   139     public long longValue() {
   139     public long longValue() {
   140         return ((new Long(name)).longValue());
   140         return Long.parseLong(name);
   141     }
   141     }
   142 
   142 
   143     /**
   143     /**
   144      * Return whether this group identification number (GID) represents
   144      * Return whether this group identification number (GID) represents
   145      * the primary group to which this user belongs.
   145      * the primary group to which this user belongs.