You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2003/01/17 07:59:03 UTC

cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly TagLibrary.java

jstrachan    2003/01/16 22:59:03

  Modified:    jelly/src/java/org/apache/commons/jelly TagLibrary.java
  Log:
  Removed redundant code spotted by Christian Sell
  
  Revision  Changes    Path
  1.18      +6 -12     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.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- TagLibrary.java	8 Nov 2002 18:27:51 -0000	1.17
  +++ TagLibrary.java	17 Jan 2003 06:59:03 -0000	1.18
  @@ -137,17 +137,11 @@
           Object value = tags.get(name);
           if (value instanceof Class) {
               Class type = (Class) value;
  -            if ( type != null ) {
  -                return (Tag) type.newInstance();
  -            }
  +            return (Tag) type.newInstance();
           }
           else if (value instanceof TagFactory) {
               TagFactory factory = (TagFactory) value;
               return factory.createTag(name, attributes);
  -        }
  -        Class type = (Class) tags.get(name);
  -        if ( type != null ) {
  -            return (Tag) type.newInstance();
           }
           return null;
       }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>