diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 13:06:48 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 13:06:48 +0000 |
commit | b56b0f1768429005c2413ce50995d9a217f69c35 (patch) | |
tree | 4fc5d308b76cb8c412058d6e39d3b66cacf8ac81 /libjava/gnu/java/security/der/BitString.java | |
parent | bb9fd4c980f3c0708aa5d5206a89eab02e8c8819 (diff) | |
download | ppe42-gcc-b56b0f1768429005c2413ce50995d9a217f69c35.tar.gz ppe42-gcc-b56b0f1768429005c2413ce50995d9a217f69c35.zip |
2004-08-30 Casey Marshall <csm@gnu.org>
Author e-mail updated for all files.
* gnu/java/security/OID.java (equals): Test if the aurgment is an
instance of OID.
(compareTo): Use `equals'.
* gnu/java/security/der/BitString.java (equals): Test if the
argument is an instance of BitString.
* gnu/java/security/der/DERReader.java: Removed NIO imports. Made
class final. Made fields private.
(<init>): New constructor.
(skip): New method.
(makeString): Made static; don't use NIO.
(fromIso88591, fromUtf16Be, fromUtf8): New methods.
* gnu/java/security/der/DERWriter.java: Fixed imports.
(writeString): Don't use NIO.
(toIso88591, toUtf16Be, toUtf8): New methods.
* gnu/java/security/der/DERValue.java: Formatting changes only.
* gnu/java/security/der/DER.java: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86765 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/security/der/BitString.java')
-rw-r--r-- | libjava/gnu/java/security/der/BitString.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libjava/gnu/java/security/der/BitString.java b/libjava/gnu/java/security/der/BitString.java index c4c2d9ab158..67e34d7bd30 100644 --- a/libjava/gnu/java/security/der/BitString.java +++ b/libjava/gnu/java/security/der/BitString.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -51,9 +51,9 @@ import java.util.Arrays; * <p>Where the "xxx" represents three bits that should be ignored, and * can have any value. * - * @author Casey Marshall (rsdio@metastatic.org) + * @author Casey Marshall (csm@gnu.org) */ -public class BitString implements Cloneable, Comparable, java.io.Serializable +public class BitString implements Cloneable, Comparable { // Fields. @@ -288,8 +288,8 @@ public class BitString implements Cloneable, Comparable, java.io.Serializable public boolean equals(Object o) { - if (this == o) - return true; + if (!(o instanceof BitString)) + return false; BitString that = (BitString) o; // True for cloned instances. if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) |