struts
struts copied to clipboard
WW-5196 use generics for RequestMap and ApplicationMap and correct SessionMap to also be of type <String, Object>
Assumption:
- keys will always be Strings
Extracted abstract class for similar logic for entries
Resolves WW-5196
Coverage increased (+0.008%) to 50.669% when pulling 6ba4432fbe8c88cd2569e7a705bd716dd0723768 on sdutry:issue/WW-5196 into de3dabbe443ae70c083f7313ba0bd74f0a3222e5 on apache:master.
Nice 👏 but I would wait with merging this till 6.0.1 is out.
Sure, no problem with waiting, just wondering if i should adjust SessionMap accordingly since, as far as i can see, it should only have String keys too.
just wondering if i should adjust SessionMap accordingly since, as far as i can see, it should only have String keys too.
Yes, please - adjust description of the ticket as well, thanks a lot!
LGTM
@sdutry could you rebase this PR? We switched from Travis to GH Actions to validate PRs, thanks in advance!
@lukaszlenart i'll der what i can do and if it's still relevant when i find a moment
@sdutry Definitely still relevant as I was about to put up a PR for the same but then noticed yours. If you've no time I'd be happy to rebase it for you :)
I'll try and do it tonight
@lukaszlenart tried to merge in master to get it up to date again.
I had to change a test concerning the nonce in order to get that test running again, not comfortable with having to do a change there, don't think i touched anything there. (FreemarkerResultMockedTest.testNonce
)
Can not get the java 11 build succeeding due to the following error :
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project struts2-parent: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
Can not get the java 11 build succeeding due to the following error :
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project struts2-parent: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
Thanks a lot @sdutry the issue with JDK11 is related to GH Action token access and can be ignored.