Inner Methods are not Supported

I have three separate procedures that I have created to be called from a groovy script. The IntellJ IDE throws this error when I added the procedures: Inner methods are not supported. How can I add the three procedures to my project?

Thanks,

Mark

0
2 comments

Here is an example: 

def typeCheck(String type,String value) {
def answer;
if (type.contains(value)) {
answer = value;
}else{
answer = "notfound";
}
return answer;
}

I want to call this procedure from my project file:

def rh = typeCheck(employeeRecord.HTReason.toString(),'Rehire');

Mark

0

Nevermind, the issue was a missing }.

Mark

0

Please sign in to leave a comment.