ntelliJ IDEA “duplicated code fragment(5 lines long)”提示如何关闭
Linux:Settings —> Editor —> Inspections —> General —> Duplicated Code
Mac:Preferences --> Editor —> Inspections —> General —> Duplicated Code fragment
将对应的勾去掉。
具体请参考:https://www.jetbrains.com/help/idea/analyzing-duplicates.html