The latest version of play framework introduced changes in their API, which has consequences on the results of rules S3330 and S2092.
More specifically, two changes impact our test code, making them fail to compile:
- Deprecated way to create a cookie play.mvc.Http.Cookie is now removed. Only one constructor remaining: play.mvc.Http.Cookie
S2092 already correctly supports the remaining constructor, but not S3330. We should support it as well for S3330.
- CookieBuilder.withMaxAge takes a Duration instead of an int.
No impact on our rules.