pitjazz commented on a change in pull request #287:
URL: https://github.com/apache/shiro/pull/287#discussion_r599036088
##########
File path:
web/src/main/java/org/apache/shiro/web/session/HttpServletSession.java
##########
@@ -83,7 +83,8 @@ public long getTimeout() throws InvalidSessionException {
public void setTimeout(long maxIdleTimeInMillis) throws
InvalidSessionException {
try {
- int timeout = Long.valueOf(maxIdleTimeInMillis / 1000).intValue();
+ long ltimeout = maxIdleTimeInMillis / 1000;
+ int timeout = (int)ltimeout;
Review comment:
SonarCloud link for this bug/cleanup:
[here](https://sonarcloud.io/project/issues?id=apache_shiro&languages=java&open=AXTvO9sg3S_U1xqKcOjR&resolved=false&severities=MINOR&types=BUG).
I'll clean the commit message etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]