IntelliSense warnings with enum static methods?

Just a quick sanity check I'm getting warnings from IntelliJ when calling static methods on a enum. Calling MyEnum.valueOf("kumquat") gives rise to a warning like:
static member 'null.package.MyEnum' accessed via instance reference

The intension actions at this point are more than a little odd (top ones blank). The valueOf(String) is a static method and I'm calling it via the Class reference not an instance.. known bug? couldnt find one (with this message).

- Richard

Oh forgot! I am using 6.0.4.

..or calling MyEnum.values() gives the same warning it seems, code compiles and runs without a problem.

Message was edited by:
Richard Osbaldeston

Please sign in to leave a comment.