Quantcast
Viewing all articles
Browse latest Browse all 5661

Groovy @SuppressWarnings("unused") goes unused

I keep trying to put @SuppressWarnings("unused") on a few class variables in my Groovy class that are unused. But it doesn't remove the warning from IntelliJ. Not sure if I have a typo or something wrong on my end.

 

Some short examples where it doesn't work

 

@SuppressWarnings("unused")
def createPot ={ handDocument -> 

 

 

@SuppressWarnings("unused")publicinterface MongoDBRepository {   @SuppressWarnings("unused"publicstaticfinal String JOURNAL_SAFE = "JOURNAL_SAFE"  publicstaticfinal String SAFE = "SAFE"  publicstaticfinal String MAJORITY = "MAJORITY"  publicstaticfinal String NORMAL = "NORMAL" }

 

 

Thanks

 

Mark


Viewing all articles
Browse latest Browse all 5661


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