I'm getting the classic
Foo.java: Some input files use unchecked or unsafe operations.
Foo.java: Recompile with -Xlint:unchecked for details.
Okay fine, it's the old story about some expression using generics in a way that is not quite to javac's liking, should be easy enough to fix once I see which line it doesn't like.
Problem: I'm not running javac directly, I'm running Maven, which doesn't take -Xlint:unchecked
. And Intellij, which normally has a surprisingly keen eye for potential problems in the code, sees nothing even slightly objectionable in Foo.java.
What's the simplest/idiomatic way to either tell Maven to say which line number the unchecked or unsafe operations are on, or to just tell it to ignore those things entirely?