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

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

Sorry to bother you but can you be more specific about what the problem is with these lines of code? I don’t really understand.

Your account still working, right?

https://intellij-support.jetbrains.com/hc/en-us/profiles/1907160898274-Markcole1110melon sandbox

0

请先登录再写评论。