Reset to default
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
You can tell IntelliJ to not to warn about used for any method/field annotated with the annotation the “unused” method has.
It should be a quick fix all you have to do is hit <Alt>+<Enter> and select
Suppress for methods annotated by ...
You don’t need to add anything to you code and you only have to do this once per annotation.
@SuppressWarnings("unused") should work.
@Peter Lawrey s solution did not help in my version of Intellij (14.1.1).
I used the hard way around:Settings-Editor->Inspections->Unused declarion
Now there is an Options point, scroll down to
Configure annotations... and you can add your annotation there.
In the “Settings” you can “uncheck” Settings – Inspections – Declaration redundancy – Unused Declaration code inspection.