Hello,
in several places in class TagLibrary, I see code like the following:
Object value = tags.get(name);
if (value instanceof Class) {
Class type = (Class) value;
if ( type != null ) {
return TagScript.newInstance(type);
}
my question is: doesnt "value instanceof Class" always return false if
value is null? Isnt the null check therefore redundant?
If that is true, the lines
Class type = (Class) tags.get(name);
if ( type != null ) {
return (Tag) type.newInstance();
}
in method createTag() are also redundant.
regards,
Christian Sell
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- [jelly] Status of sources? Todd Jonker
- Re: [jelly] Status of sources? dion
- Re: [jelly] Status of sources? James Strachan
- Re: [jelly] Status of sources? Todd Jonker
- Re: [jelly] Status of sources? James Strachan
- Re: [jelly] code question Christian Sell
- Re: [jelly] code question Paul Libbrecht
- Re: [jelly] code question Christian Sell
- Re: [jelly] code question James Strachan
- Re: [jelly] code question Christian Sell
- Re: [jelly] code question Christian Sell
- Re: [jelly] code question James Strachan
- [jelly] taglib implementation questi... Christian Sell
- Re: [jelly] taglib implementatio... James Strachan
- Re: [jelly] taglib implement... Christian Sell
- Re: [jelly] taglib implement... James Strachan
