Idea显示警告:Detects duplicates in source code,实际不影响代码运行,但是看着比较烦。
在这里插入图片描述

Idea设置即可

操作步骤:

File->Setting->Editor->Inspections->General
将Duplicate code fragment 勾选去掉,然后应用保存,OK。

在这里插入图片描述
恢复正常。
在这里插入图片描述

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐