Skip to content

Commit

Permalink
Merge pull request #287 from pitjazz/bugfix
Browse files Browse the repository at this point in the history
Fixed a bug, removed the boxing to long.
  • Loading branch information
fpapon committed Apr 16, 2021
2 parents cc13903 + c97eac5 commit df81077
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public long getTimeout() throws InvalidSessionException {

public void setTimeout(long maxIdleTimeInMillis) throws InvalidSessionException {
try {
int timeout = Long.valueOf(maxIdleTimeInMillis / 1000).intValue();
int timeout = (int) (maxIdleTimeInMillis / 1000);
httpSession.setMaxInactiveInterval(timeout);
} catch (Exception e) {
throw new InvalidSessionException(e);
Expand Down

0 comments on commit df81077

Please sign in to comment.