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:
@@ -286,6 +286,19 @@ public class BitString implements Cloneable, Comparable
|
||||
return 0; // not reached.
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
int result = 0;
|
||||
for (int i = 0; i < bytes.length - 1; ++i)
|
||||
result = result * 31 + bytes[i];
|
||||
if (bytes.length > 0)
|
||||
{
|
||||
int lastByte = bytes[bytes.length - 1] & ~ ((1 << ignoredBits) - 1);
|
||||
result = result * 31 + lastByte;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (!(o instanceof BitString))
|
||||
|
||||
@@ -389,7 +389,7 @@ public class DERReader implements DER
|
||||
Integer.parseInt(str.substring( 4, 6)), // day
|
||||
Integer.parseInt(str.substring( 6, 8)), // hour
|
||||
Integer.parseInt(str.substring( 8, 10))); // minute
|
||||
if (date.length() == 12);
|
||||
if (date.length() == 12)
|
||||
calendar.set(Calendar.SECOND,
|
||||
Integer.parseInt(str.substring(10, 12)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user