Description
Helper.groovy
@groovy.transform.CompileStatic class Helper { void addToCollection(Collection coll, int index, val) { coll[index] = val } }
Compiled with 2.1.1 the decompiled class looks something like this:
import groovy.lang.GroovyObject; import groovy.lang.MetaClass; import groovy.transform.TypeChecked.TypeCheckingInfo; import java.util.Collection; public class Helper implements GroovyObject { public Helper() { Helper this; MetaClass localMetaClass = $getStaticMetaClass(); this.metaClass = localMetaClass; } @TypeChecked.TypeCheckingInfo(inferredType="AAlDbGFzc05vZGUAAAFWAP////8=", version=1) public void addToCollection(Collection coll, int index, Object val) { Object localObject = val; } static { __$swapInit(); long l1 = 0L; __timeStamp__239_neverHappen1367381386616 = l1; long l2 = 1367381386616L; } }
The method doesn't really do anything.