Bug in inspector when using assert and groovy?
Hello all,
When I use assert in groovy code I'm getting an inspection warning: "Not all execution paths return a value". For example this method:
private String fileMimeType(File file) {
assert (file != null)
Magic parser = new Magic() ; // JMimeMagic
MagicMatch match = parser.getMagicMatch(file, true);
return match.getMimeType()
} // this point gets highlighted with the inspection warning
If I comment the assert line the warning disappear.
Is this the correct behavior? I don't think it's missing any return.
Regards,
Felipe Cypriano
请先登录再写评论。
This is a bug. Please file a JIRA issue
Ok, filled http://www.jetbrains.net/jira/browse/IDEA-23618