Join Slack
How do I stop Intellij IDEA making the generic type greyed out? ("remove explicit type" warning)
# intellij
o
Orhan Tozan
03/18/2020, 8:01 PM
How do I stop Intellij IDEA making the generic type greyed out? ("remove explicit type" warning)
s
Shawn
03/18/2020, 8:03 PM
Do you need the generic type there? Does it not compile without it?
o
Orhan Tozan
03/18/2020, 8:04 PM
It does compile, but I like the explicitness/verbosity here
s
Shawn
03/18/2020, 8:04 PM
I think the
OcurrenceOption
bit of the statement is pretty obvious but idk
o
Orhan Tozan
03/18/2020, 8:05 PM
This is just an example. It does this on everything related
s
Shawn
03/18/2020, 8:06 PM
if you activate show intentions (option-enter on macOS) you’ll be able to expand the dropdown and add a suppression
Shawn
03/18/2020, 8:06 PM
Screen Shot 2020-03-18 at 4.05.31 PM.png
o
Orhan Tozan
03/18/2020, 8:07 PM
Thank you Shawn
👍 1
6
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by