Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Recompile with -Xlint:unchecked for details

$
0
0

I am compiling my code in the IDE and I get a couple of warnings. One with a recommendation:

 

java: Recompile with -Xlint:unchecked for details

 

How do I do this?

 

The code in question looks like:

 

designDoc.getViews().add(viewDesign);

The getViews() is returning a List not a List<ViewDesign> hence the error. Ideally I would like to add an annotation to supress the warning but when I do that I get an error that Annotations are not allowed here. Ideas?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>