Re: StaticCompileCastOptimizationTest

2016-08-12 Thread Paul King
OK, I changed it to not have the duplicate tests. Shout if you see anything wrong. Cheers, Paul. On Thu, Aug 11, 2016 at 10:03 PM, Paul King wrote: > Does anyone know why StaticCompileCastOptimizationTest extends > DefaultGroovyMethodsSTCTest and not just StaticTypeCheckingTestCase? > > I am pre

[CONTRIBUTION]groovy-option-support

2016-08-12 Thread daniel_sun
Hi all, The option pattern(http://www.codecommit.com/blog/scala/the-option-pattern) is very useful to improve the robustness of program by avoiding NPE. Scala and Rust have build in the pattern(http://www.tutorialspoint.com/scala/scala_options.htm), but Groovy currently is lack of it.

Iterate ArrayList over XML

2016-08-12 Thread GroovyBeginner
I am iterating an arraylist over xml and forming another xml with the list of values present in arraylist. Here is the code am using import groovy.xml.MarkupBuilder def books=''' 2 *3* 4 ''' def lst=["a","b","c","d"] def sw = new