-1

Why does IntelliJ has inspections for generic usage disabled by default?

These inspections (Java 5 -> Raw use of parametrized class) needs to be enabled explicitly and I find that new developers do not know about them. Is there some good reason I do not know why using raw types would be a good practice?

Nezhull
  • 1
  • 1
  • Are you talking about the "Raw type can be generic" inspection? That's the only inspection with the word "generic". It's enabled by default though... – Sweeper Dec 01 '20 at 08:45
  • @Sweeper Sorry, I forgot to add, is is called Raw use of parametrized class, it is under Java 5 branch. – Nezhull Dec 01 '20 at 08:56
  • You can set your default in `File->New Project Settings->Settings for new Projects...`. – daniu Dec 01 '20 at 09:00
  • @Slaw Maybe, to be honest I do not know, we use either Maven or Gradle and rarely anybody looks at raw `javac` log output. I have it enabled and I always have to point these things in PRs. – Nezhull Dec 01 '20 at 09:03
  • @daniu Yes, but why it is disabled by default? Problem is not me, problem is that other developers do not see yellow warnings all over their code by default. – Nezhull Dec 01 '20 at 09:05

1 Answers1

0

The Raw use of parameterized class inspection is enabled by default since IntelliJ IDEA version 2019.3. Are you using an older version?

Bas Leijdekkers
  • 23,709
  • 4
  • 70
  • 68