public Object remove(Object name)
   {
      if (name == null)
         throw new NullArgumentException("name");

      // check if there is a property with this name
      boolean contains = containsKey(name);
      Object value = null;

      if (contains)
      {
         value = super.remove(name);
         if (defaults != null)
         {
            Object obj = defaults.remove(name);
            if (value == null)
            {
               value = obj;
            }
         }
         // Remove any JNDI property value
         jndiMap.remove(name);

         PropertyEvent event = new PropertyEvent(this, name.toString(), value.toString());
         firePropertyRemoved(event);
      }

      return value;
   }
public Object remove(Object name)
   {
      if (name == null)
         throw new NullArgumentException("name");

      
      boolean contains = containsKey(name);
      Object value = null;

      if (contains)
      {
         value = super.remove(name);
         if (defaults != null)
         {
            Object obj = defaults.remove(name);
            if (value == null)
            {
               value = obj;
            }
         }
         
         jndiMap.remove(name);

         PropertyEvent event = new PropertyEvent(this, name.toString(), value.toString());
         firePropertyRemoved(event);
      }

      return value;
   }
public Object remove ( Object name ) { if ( name == null ) throw new NullArgumentException ( "name" ) ; // check if there is a property with this name boolean contains = containsKey ( name ) ; Object value = null ; if ( contains ) { value = super . remove ( name ) ; if ( defaults != null ) { Object obj = defaults . remove ( name ) ; if ( value == null ) { value = obj ; } } // Remove any JNDI property value jndiMap . remove ( name ) ; PropertyEvent event = new PropertyEvent ( this , name . toString ( ) , value . toString ( ) ) ; firePropertyRemoved ( event ) ; } return value ; }
Remove a property.

@param name    Property name.
@return        Removed property value.
Remove a property .