Skip to content

Commit c4ff979

Browse files
committed
Cast the generic list reads in TlsStatusRequestResumptionTest so that it still compiles once the legacy Ant source preprocessor has stripped the generics from the fields.
1 parent e5badfa commit c4ff979

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tls/src/test/java/org/bouncycastle/tls/test/TlsStatusRequestResumptionTest.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,14 @@ public void getServerExtensionsForConnection(Hashtable serverExtensions)
197197

198198
synchronized boolean sentExtension(int handshake, Integer extensionType)
199199
{
200-
return sentExtensions.get(handshake).contains(extensionType);
200+
// NOTE: casts so this still compiles once the jdk1.4 build's preprocessor has stripped
201+
// the generics from the field declarations above
202+
return ((Set)sentExtensions.get(handshake)).contains(extensionType);
201203
}
202204

203205
synchronized boolean wasResumed(int handshake)
204206
{
205-
return resumed.get(handshake).booleanValue();
207+
return ((Boolean)resumed.get(handshake)).booleanValue();
206208
}
207209
}
208210
}

0 commit comments

Comments
 (0)