Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated.
* Makefile.in: Likewise.
* scripts/makemake.tcl: Use glob -nocomplain.
From-SVN: r107049
This commit is contained in:
@@ -112,7 +112,7 @@ public class BasicConstraints extends Extension.Value
|
||||
if (encoded == null)
|
||||
{
|
||||
List bc = new ArrayList (2);
|
||||
bc.add (new DERValue (DER.BOOLEAN, new Boolean (ca)));
|
||||
bc.add (new DERValue (DER.BOOLEAN, Boolean.valueOf (ca)));
|
||||
if (pathLenConstraint >= 0)
|
||||
bc.add (new DERValue (DER.INTEGER,
|
||||
BigInteger.valueOf ((long) pathLenConstraint)));
|
||||
|
||||
@@ -232,7 +232,7 @@ public class Extension
|
||||
{
|
||||
List ext = new ArrayList (3);
|
||||
ext.add (new DERValue (DER.OBJECT_IDENTIFIER, oid));
|
||||
ext.add (new DERValue (DER.BOOLEAN, new Boolean (critical)));
|
||||
ext.add (new DERValue (DER.BOOLEAN, Boolean.valueOf (critical)));
|
||||
ext.add (new DERValue (DER.OCTET_STRING, value.getEncoded()));
|
||||
return new DERValue (DER.CONSTRUCTED|DER.SEQUENCE, ext);
|
||||
}
|
||||
@@ -274,6 +274,14 @@ public class Extension
|
||||
return (byte[]) encoded;
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
int result = 0;
|
||||
for (int i = 0; i < encoded.length; ++i)
|
||||
result = result * 31 + encoded[i];
|
||||
return result;
|
||||
}
|
||||
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (!(o instanceof Value))
|
||||
|
||||
Reference in New Issue
Block a user