We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
类名:CalculateServiceFactory.java 版本:Latest commit [73cc707] on 8 Nov 2020 行数:33-38 问题:判断中使用了相同的条件,应该更正为其他策略。 片段: } else if (Constant.CalculateTypeEnum.SUBTRACT.getType().equals(type)) { calculateService = subtractCalculateServiceImpl; } else if (Constant.CalculateTypeEnum.SUBTRACT.getType().equals(type)) { calculateService = multiplyCalculateServiceImpl; } else if (Constant.CalculateTypeEnum.SUBTRACT.getType().equals(type)) { calculateService = divideCalculateServiceImpl;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
类名:CalculateServiceFactory.java
版本:Latest commit [73cc707] on 8 Nov 2020
行数:33-38
问题:判断中使用了相同的条件,应该更正为其他策略。
片段: } else if (Constant.CalculateTypeEnum.SUBTRACT.getType().equals(type)) {
calculateService = subtractCalculateServiceImpl;
} else if (Constant.CalculateTypeEnum.SUBTRACT.getType().equals(type)) {
calculateService = multiplyCalculateServiceImpl;
} else if (Constant.CalculateTypeEnum.SUBTRACT.getType().equals(type)) {
calculateService = divideCalculateServiceImpl;
The text was updated successfully, but these errors were encountered: