Commit f1b18462 by Andreas Tobler

2004-09-21 Casey Marshall <csm@gnu.org>

	* java/security/cert/X509CRLSelector.java:
	(match): remove unreachable try-catch clauses.
	Reported by: Dalibor Topic <robilad@kaffe.org>

From-SVN: r87805
parent 9413382e
2004-09-21 Casey Marshall <csm@gnu.org>
* java/security/cert/X509CRLSelector.java:
(match): remove unreachable try-catch clauses.
Reported by: Dalibor Topic <robilad@kaffe.org>
2004-09-21 Mark Wielaard <mark@klomp.org>
* java/util/TreeMap.java (root): Don't initialize.
(TreeMap(Comparator)): Call fabricateTree(0).
(fabricateTree): Initialize root and size when count is 0.
2004-09-21 Sven de Marothy <sven@physto.se> 2004-09-21 Sven de Marothy <sven@physto.se>
* java/nio/ByteBuffer.java (hashCode): Implemented. * java/nio/ByteBuffer.java (hashCode): Implemented.
......
...@@ -378,8 +378,6 @@ public class X509CRLSelector implements CRLSelector, Cloneable ...@@ -378,8 +378,6 @@ public class X509CRLSelector implements CRLSelector, Cloneable
BigInteger crlNumber = null; BigInteger crlNumber = null;
if (maxCrlNumber != null) if (maxCrlNumber != null)
{ {
try
{
byte[] b = crl.getExtensionValue(CRL_NUMBER_ID); byte[] b = crl.getExtensionValue(CRL_NUMBER_ID);
if (b == null) if (b == null)
return false; return false;
...@@ -397,15 +395,8 @@ public class X509CRLSelector implements CRLSelector, Cloneable ...@@ -397,15 +395,8 @@ public class X509CRLSelector implements CRLSelector, Cloneable
if (maxCrlNumber.compareTo(crlNumber) < 0) if (maxCrlNumber.compareTo(crlNumber) < 0)
return false; return false;
} }
catch (CertificateParsingException cpe)
{
return false;
}
}
if (minCrlNumber != null) if (minCrlNumber != null)
{ {
try
{
if (crlNumber == null) if (crlNumber == null)
{ {
byte[] b = crl.getExtensionValue(CRL_NUMBER_ID); byte[] b = crl.getExtensionValue(CRL_NUMBER_ID);
...@@ -426,11 +417,6 @@ public class X509CRLSelector implements CRLSelector, Cloneable ...@@ -426,11 +417,6 @@ public class X509CRLSelector implements CRLSelector, Cloneable
if (minCrlNumber.compareTo(crlNumber) > 0) if (minCrlNumber.compareTo(crlNumber) > 0)
return false; return false;
} }
catch (CertificateParsingException cpe)
{
return false;
}
}
if (date != null) if (date != null)
{ {
if (date.compareTo(crl.getThisUpdate()) < 0 || if (date.compareTo(crl.getThisUpdate()) < 0 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment