-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
feature(core): various page and back end implantation #16
Conversation
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
public class PaymentServlet extends HttpServlet { | ||
@Override | ||
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { | ||
super.doGet(req, resp); |
Check notice
Code scanning / SonarCloud
Exceptions should not be thrown from servlet methods Low
Map<String, String> map = null; | ||
try { | ||
Gson gson = new Gson(); | ||
map = gson.fromJson(req.getReader(), mapType); |
Check notice
Code scanning / SonarCloud
Exceptions should not be thrown from servlet methods Low
userAccount.setPassword(PasswordSHA512.SHA512Hash(map.get("password"))); | ||
var address = new Address(); | ||
address.setCountryCode("IT"); | ||
address.setLat(Double.valueOf(map.get("lat"))); |
Check notice
Code scanning / SonarCloud
Exceptions should not be thrown from servlet methods Low
var address = new Address(); | ||
address.setCountryCode("IT"); | ||
address.setLat(Double.valueOf(map.get("lat"))); | ||
address.setLon(Double.valueOf(map.get("lon"))); |
Check notice
Code scanning / SonarCloud
Exceptions should not be thrown from servlet methods Low
} | ||
if (httpSession.getAttribute("cart") instanceof HashMap<?, ?> map) { | ||
var typeMap = (HashMap<Integer, Integer>) map; | ||
var quant = typeMap.get(Integer.parseInt(req.getParameter("foodId"))); |
Check notice
Code scanning / SonarCloud
Exceptions should not be thrown from servlet methods Low
var quant = typeMap.get(Integer.parseInt(req.getParameter("foodId"))); | ||
if (quant != null) { | ||
quant++; | ||
typeMap.replace(Integer.parseInt(req.getParameter("foodId")), quant); |
Check notice
Code scanning / SonarCloud
Exceptions should not be thrown from servlet methods Low
Qodana for JVM1 new problem were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
feature(core): various page and back end implantation