jstrachan    2003/01/17 21:21:08

  Modified:    jelly/src/java/org/apache/commons/jelly TagLibrary.java
  Log:
  Removed more redundant code, spotted by Christian Sell
  
  Revision  Changes    Path
  1.19      +6 -8      
jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/TagLibrary.java
  
  Index: TagLibrary.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/TagLibrary.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- TagLibrary.java   17 Jan 2003 06:59:03 -0000      1.18
  +++ TagLibrary.java   18 Jan 2003 05:21:08 -0000      1.19
  @@ -119,9 +119,7 @@
           Object value = tags.get(name);
           if (value instanceof Class) {
               Class type = (Class) value;
  -            if ( type != null ) {
  -                return TagScript.newInstance(type);
  -            }
  +            return TagScript.newInstance(type);
           }
           else if (value instanceof TagFactory) {
               return new TagScript( (TagFactory) value );
  
  
  

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

Reply via email to