[英]IntelliJ suppress warnings for unchanged lines
is it possible to suppress all warnings in IntelliJ for all unchanged lines? 是否可以抑制所有不变的行中IntelliJ中的所有警告? I am working in a project with java files larger than 2000 lines and there are warnings everywhere.
我在一个Java文件大于2000行的项目中工作,到处都有警告。 To get a better overview of my code I want to only inspect my changed or added lines.
为了更好地了解我的代码,我只想检查更改或添加的行。
Summary from comment conversation: 评论对话摘要:
Bad luck. 厄运。 Turning warnings off is the only solution (no one care about them anyway).
关闭警告是唯一的解决方案(反正没人在乎)。
I don't think there is a way to do this. 我认为没有办法做到这一点。 However, going forward you can use the annotation @SuppressWarnings( "unchecked" ) to suppress warnings that you do not care about.
但是,今后您可以使用注释@SuppressWarnings(“ unchecked”)来抑制不需要的警告。 This does nothing for existing code unless you apply it to each warning (not what I would recommend), but will achieve the desired effect going forward.
除非您将其应用于每个警告(不是我所建议的警告),否则这不会对现有代码执行任何操作,但可以达到预期的效果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.