mrglavas    2005/07/13 10:59:21

  Modified:    java/src/org/apache/xerces/xinclude XIncludeHandler.java
  Log:
  Fixing a static mutability issue. Clone the recognized
  features/properites arrays before returning them to
  the caller.
  
  Revision  Changes    Path
  1.55      +3 -3      
xml-xerces/java/src/org/apache/xerces/xinclude/XIncludeHandler.java
  
  Index: XIncludeHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/xinclude/XIncludeHandler.java,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- XIncludeHandler.java      24 Jun 2005 01:06:07 -0000      1.54
  +++ XIncludeHandler.java      13 Jul 2005 17:59:21 -0000      1.55
  @@ -572,7 +572,7 @@
        * are recognized by this component.
        */
       public String[] getRecognizedFeatures() {
  -        return RECOGNIZED_FEATURES;
  +        return (String[])(RECOGNIZED_FEATURES.clone());
       } // getRecognizedFeatures():String[]
   
       /**
  @@ -607,7 +607,7 @@
        * are recognized by this component.
        */
       public String[] getRecognizedProperties() {
  -        return RECOGNIZED_PROPERTIES;
  +        return (String[])(RECOGNIZED_PROPERTIES.clone());
       } // getRecognizedProperties():String[]
   
       /**
  
  
  

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

Reply via email to