3

Methods annotated as @Deprecated do not show with a strikethrough in editor panes. It doesn't show up in the preview pane of the color scheme settings either (the lines "Deprecated symbol" and "Deprecated symbol marked for removal" are normal, even though Strikeout effect is selected).

screenshot

Deprecation inspections are turned on as well, and show up when running Analyze over a Java file. I've already tried changing the font from Fira Code to something else, and disabling font ligatures, but that didn't work.

This is on IntelliJ IDEA Ultimate 2018.2.4

James Hiew
  • 6,040
  • 5
  • 27
  • 41
  • There is this question from five years ago - https://stackoverflow.com/questions/19947327 - but none of the answers there helped in my situation. – James Hiew Oct 10 '18 at 17:58

2 Answers2

4

It seems to be a bug when rendering texts. See IDEA-198539

tgeng
  • 1,768
  • 2
  • 15
  • 20
1
  1. The correct usage is @deprecated (do not use capitalization)
  2. Make sure the Java | Code maturity | Deprecated API usage inspection is enabled and this symbol usage is not fall into one of the ignored cases in the inspection options. Un-mark all the ignores there to make sure: enter image description here
Andrey
  • 15,144
  • 25
  • 91
  • 187
  • Thanks, all of the 'deprecated' inspections were already enabled to at least the Warning level, even after unticking all those Ignore checkboxes the problem persisted. – James Hiew Oct 14 '18 at 12:42
  • 3
    `@deprecated` is the javadoc tag. `@Deprecated` is the Java annotation. You should use both. – David Pashley Nov 14 '18 at 02:30