Details
Description
Primitives types should be taken into account in implementation of rule S2441, as autoboxing convert them into their object wrapper classes.
int id=20; request.getSession().setAttribute("id", id); // Should be compliant (in autoboxed in Integer) request.getSession().setAttribute("id", new Integer(id)); // Compliant
Original Thread from SQ google group: https://groups.google.com/d/msgid/sonarqube/6bd9dc85-2168-44fb-9bc1-d74139921516%40googlegroups.com
Attachments
Issue Links
- relates to
-
RSPEC-2441 Non-serializable objects should not be stored in "HttpSession" objects
- Active