You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:32 UTC

[jira] Closed: (VELOCITY-65) Iterator warnings sometimes inappropriate

     [ https://issues.apache.org/jira/browse/VELOCITY-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen closed VELOCITY-65.
------------------------------------------


> Iterator warnings sometimes inappropriate
> -----------------------------------------
>
>                 Key: VELOCITY-65
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-65
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.2
>         Environment: Operating System: other
> Platform: All
>            Reporter: Steven Hugg
>         Assigned To: Velocity-Dev List
>            Priority: Minor
>
> There are a lot of warnings about Iterators in #foreach directives.  But 
> sometimes the warnings don't apply.  Isn't it safe if you just do:
> #foreach($foo in $listOfFoos.elements())
> ...
> #end
> I think the only time a warning should be generated is if you #set a variable 
> to an iterator or if you pass the Iterator to a method. (any others?)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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