Misleading warning in Error Stripe side bar in Intellij - intellij-idea

I'm currently using Intellij Idea (v2020.2) to code and today I encountered this wild warning as shown below.
Is there any ideas to fix it? Thank you!

You need to change <Object> to <>. Diamond operator was introduced in Java 1.7

Related

Kotlin Red Warning Codes

Please give me solutions of this problem from my kotlin codes!
t.message has red warning
binding.root has red warning
I've tried to resolve this issue, but still have no success in addressing it.
replace it with val_binding
RecyclerView.ViewHolder(val_binding.root)

What do plugin icons mean?

What do the following icons mean?
I saw symbol reference but I didn't find what I want.
This information can be found in IntelliJ IDEA documentation.
You can distinguish above two icons now.

How to avoid the error message when using thymeleaf templates in Intellij

I'm using spring boot and thymeleaf in Intellij Idea and try to get the parameters of the URL in the template, I use the following code:
<!--/*#thymesVar id="param" type="java.util.Map<java.lang.String, java.lang.String>"*/-->
<a th:href="#{/dashboard(version=${param.version})}">Dashboard</a>
It works correctly, but I want to clear the error message, Is there any good way to do this?
This is not an error. If you run your application, It is supposed to work (If there is no other errors), as you mentioned that It's working correctly. The JetBrains/ IntelliJ is not able to locate your model variables with Thymeleaf framework. So that's why I does show the red underline. For more details check the link how to resolve JetBrains model variables.
Hopefully in next version of IntelliJ IDEA, this issue would get resolved.
Let us know If It was helpful.

IntelliJ IDEA FXML is not correctly recognized

Why does IntelliJ does not recognize all tags in this *.fxml document?
The JavaFX plugin is enabled and some of the tags are recognized... (I created this with SceneBuilder)
How to solve this problem?
Don't rely on the wildcard import for resolution of the fx:root type attribute.
Use:
<fx:root type="javafx.scene.layout.GridPane" ...
Instead of:
<fx:root type="GridPane" ...
Then all of the node type specific tags (such as <children>) will resolve OK in the Idea editor and not be highlighted in red.
Do not ask me why this is so as I do not know.
I tested the above on Idea 15 EAP ideaIU-143.116.4-custom-jdk-bundled.dmg, it may or may not work on earlier Idea editions.

Intellij idea deprecated no strikeout/strikethrough

I'm using IntelliJ IDEA v12. When I import a project, there’s a strikeout/strikethrough line on the method which has the annotation #Deprecated, but I used alt+enter to disable it. So, how can I reactivate this feature? I want to display that strikethrough, thanks!
Open Settings -> Type Inspections to go to inspection settings -> Type Deprecated to find out all deprecated related inspection settings -> Check Deprecated API usage.
IntelliJ had a bug in 2018.3, 2018.2.2 (182.4129.33). It was fixed in builds 191.65, 183.3691.
Setting -Dide.text.effect.new.metrics=false in the .vmoptions fixes the problem.
In addition to Ionghua's answer .....
If you find that IntelliJ is still not striking out deprecated methods, even though you have enabled the inspection as above, check to make sure that your code is not ignoring deprecation warnings with #SuppressWarnings("deprecation").
In addition to longhua's answer... and vegemite4me...
Another possible source for this problem might be custom color themes.
If you are using a custom theme, make sure that it contains strikethrough. I was using monokai-sublime and there is no strikethrough for #Deprecated annotations. When I changed the color theme from monokai to darcula strikethrough worked as expected.
I found that the only thing that worked for me with version 2019.2 192.5728.98, runtime 11.0.3+12-b304.10 was to use Help | Edit VM Options and add -Dide.text.effect.new.metrics=false