Bug in extracting method text from .java files
I need to extract method implementation from java projects. I found a code on the javalang github issues https://github.com/c2nes/javalang/issues/49 but it fails sometimes. Can anyone take a look and see whats wrong?