found duplicated code in this file
finds duplicated code
翻译: 发现重复的代码在这个文件中
发现重复的代码
原因:
应该是相同的代码分别出现在了不同的地方,java不建议代码冗余的状态
解决:
把需要调用相同代码的部分写成一个方法,分别在不同的地方调用即可解决
found duplicated code in this file
finds duplicated code
翻译: 发现重复的代码在这个文件中
发现重复的代码
应该是相同的代码分别出现在了不同的地方,java不建议代码冗余的状态
把需要调用相同代码的部分写成一个方法,分别在不同的地方调用即可解决