Intellij,Thymeleaf,在代码检查期间识别 instanceof
Intellij, Thymeleaf, recognise instanceof during code inspection
我想知道是否可以让 Intellij 代码检查识别 "instanceof" 并将其标记为正确。
我在图片中提供的代码有效,我只是想阻止 Intellij 绘制红线
Picture of the code
您可以从“设置”菜单中忽略和禁止对 Intellij 的检查。
Settings/Preferences 对话框 (Ctrl+Alt+S),select 编辑器 |检查。
或者您可以通过 select 语句并按 Alt + Enter
然后按 Disable inspection
(如果提供)来 supress/disable 检查。你可以阅读来自 Intellij 的官方 documentation。
您可以找到 Java Intellij 检查的完整列表 here。
我想知道是否可以让 Intellij 代码检查识别 "instanceof" 并将其标记为正确。 我在图片中提供的代码有效,我只是想阻止 Intellij 绘制红线
Picture of the code
您可以从“设置”菜单中忽略和禁止对 Intellij 的检查。
Settings/Preferences 对话框 (Ctrl+Alt+S),select 编辑器 |检查。
或者您可以通过 select 语句并按 Alt + Enter
然后按 Disable inspection
(如果提供)来 supress/disable 检查。你可以阅读来自 Intellij 的官方 documentation。
您可以找到 Java Intellij 检查的完整列表 here。