diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionImpl.java')
-rw-r--r-- | bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionImpl.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionImpl.java b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionImpl.java index fe153660f..32486a68f 100644 --- a/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionImpl.java +++ b/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/HttpSessionImpl.java @@ -185,9 +185,8 @@ public class HttpSessionImpl implements HttpSession { if (canExpire) { return ((int) (maxInactive / 1000L)); - } else { - return (-1); } + return (-1); } /** @@ -204,10 +203,9 @@ public class HttpSessionImpl implements HttpSession { } else { if (interval < 0) { throw new IllegalArgumentException("negative value"); //$NON-NLS-1$ - } else { - maxInactive = ((long) interval) * 1000L; - canExpire = true; } + maxInactive = interval * 1000L; + canExpire = true; } } } |