summaryrefslogtreecommitdiff
path: root/gnu/javax/net/ssl/AbstractSessionContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/javax/net/ssl/AbstractSessionContext.java')
-rw-r--r--gnu/javax/net/ssl/AbstractSessionContext.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/gnu/javax/net/ssl/AbstractSessionContext.java b/gnu/javax/net/ssl/AbstractSessionContext.java
index 031e53a84..96a4e6dd0 100644
--- a/gnu/javax/net/ssl/AbstractSessionContext.java
+++ b/gnu/javax/net/ssl/AbstractSessionContext.java
@@ -1,5 +1,5 @@
/* AbstractSessionContext -- stores SSL sessions, possibly persistently.
- Copyright (C) 2006, 2015 Free Software Foundation, Inc.
+ Copyright (C) 2006 Free Software Foundation, Inc.
This file is a part of GNU Classpath.
@@ -172,7 +172,6 @@ public abstract class AbstractSessionContext implements SSLSessionContext
* @return The found session, or null if no such session was found,
* or if that session has expired.
*/
- @Override
public final SSLSession getSession (byte[] sessionId)
{
Session s = implGet (sessionId);
@@ -187,9 +186,9 @@ public abstract class AbstractSessionContext implements SSLSessionContext
public final SSLSession getSession(String host, int port)
{
- for (Enumeration<byte[]> e = getIds(); e.hasMoreElements(); )
+ for (Enumeration e = getIds(); e.hasMoreElements(); )
{
- byte[] id = e.nextElement();
+ byte[] id = (byte[]) e.nextElement();
SSLSession s = getSession(id);
if (s == null) // session expired.
continue;
@@ -222,7 +221,6 @@ public abstract class AbstractSessionContext implements SSLSessionContext
*/
protected abstract Session implGet (byte[] sessionId);
- @Override
public int getSessionTimeout()
{
return (int) (timeout / 1000);
@@ -269,7 +267,6 @@ public abstract class AbstractSessionContext implements SSLSessionContext
/**
*
*/
- @Override
public final void setSessionTimeout(int seconds)
{
if (timeout < 0)