1、idea中报错如下图:
提示有重复代码块
3、解决方式File → Settings → Editor → Inspections→搜索 “Duplicated Code”→去掉Duplicated Code后面的勾选→Aapply→OK