mrglavas    2005/01/30 20:10:48

  Modified:    java/src/org/apache/xerces/impl/xs XMLSchemaLoader.java
  Log:
  Allow properties to be set to null on the schema loader. Previously we could 
not
  set null values on the configuration because it was backed by a 
java.util.Hashtable.
  We now use a HashMap. This allows properties such as the SecurityManager to
  be removed by the user.
  
  Revision  Changes    Path
  1.36      +4 -7      
xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java
  
  Index: XMLSchemaLoader.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/XMLSchemaLoader.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- XMLSchemaLoader.java      20 Dec 2004 06:09:40 -0000      1.35
  +++ XMLSchemaLoader.java      31 Jan 2005 04:10:48 -0000      1.36
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 2000-2004 The Apache Software Foundation.
  + * Copyright 2000-2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -390,11 +390,8 @@
        */
       public void setProperty(String propertyId,
               Object state) throws XMLConfigurationException {                 
  
  -        fSettingsChanged = true;            
  -        // REVISIT: We cannot set null values on this configuration
  -        // because it is backed by a java.util.Hashtable which doesn't
  -        // permit null values. -- mrglavas
  -        if (state != null) fLoaderConfig.setProperty(propertyId, state);    
  +        fSettingsChanged = true;
  +        fLoaderConfig.setProperty(propertyId, state);    
           if(propertyId.equals( JAXP_SCHEMA_SOURCE)) {
               fJAXPSource = state;
               fJAXPProcessed = false;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to