aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/security/der/BitString.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/java/security/der/BitString.java')
-rw-r--r--libjava/gnu/java/security/der/BitString.java10
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 c4c2d9a..67e34d7 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)