In this line of my Groovy code:
def document = someQuery().Document[0]
The someQuery method will return a Json Array, and this worked fine. Since the editor does not know the property, it underlines Document and displays a warning in [0] , says:
'getAt' in 'org.codehaus.groovy.runtime.DefaultGroovyMethods' cannot be applied to '(java.lang.Integer)'
So what is the best way to do this to avoid this warning?
source share