cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl AbstractConfigurableSourceInspector.java
Date Fri, 13 Feb 2004 13:42:48 GMT
unico       2004/02/13 05:42:48

  Modified:    src/blocks/repository/java/org/apache/cocoon/components/source/impl
                        AbstractConfigurableSourceInspector.java
  Log:
  avoid null namespace
  
  Revision  Changes    Path
  1.6       +8 -1      cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceInspector.java
  
  Index: AbstractConfigurableSourceInspector.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceInspector.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractConfigurableSourceInspector.java	21 Nov 2003 11:39:46 -0000	1.5
  +++ AbstractConfigurableSourceInspector.java	13 Feb 2004 13:42:48 -0000	1.6
  @@ -168,7 +168,14 @@
        * the given type.
        */
       public final boolean handlesProperty(String namespace, String name) {
  -        return m_properties.contains(namespace + "#" + name);
  +        String propname;
  +        if (namespace == null) {
  +            propname = "#" + name;
  +        }
  +        else {
  +            propname = namespace + "#" + name;
  +        }
  +        return m_properties.contains(propname);
       }
       
       /**
  
  
  

Mime
View raw message