commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler Registry.java
Date Mon, 17 Feb 2003 01:00:10 GMT
costin      2003/02/16 17:00:10

  Modified:    modeler/src/java/org/apache/commons/modeler Registry.java
  Log:
  Reduce verbosity.
  Extra check for null component
  
  Revision  Changes    Path
  1.18      +6 -2      jakarta-commons/modeler/src/java/org/apache/commons/modeler/Registry.java
  
  Index: Registry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/Registry.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Registry.java	3 Feb 2003 21:46:24 -0000	1.17
  +++ Registry.java	17 Feb 2003 01:00:09 -0000	1.18
  @@ -313,8 +313,8 @@
       public void loadDescriptors( String sourceType, Object source, String param)
           throws Exception
       {
  -        if( log.isDebugEnabled())
  -            log.debug("loadDescriptors " + source, new Throwable() );
  +        if( log.isTraceEnabled())
  +            log.trace("loadDescriptors " + source );
           ModelerSource ds=getModelerSource(sourceType);
   
           if( source instanceof URL ) {
  @@ -344,6 +344,10 @@
                                     String name)
              throws Exception
       {
  +        if( bean ==null ) {
  +            log.error("Null component " + name );
  +            return;
  +        }
           String nameStr=null;
           try {
               if( type==null ) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message