/[classpath]/classpath/gnu/java/security/der/BitString.java
ViewVC logotype

Diff of /classpath/gnu/java/security/der/BitString.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rsdio, Wed Apr 23 22:53:53 2003 UTC revision 1.1.2.1 by gnu_andrew, Thu Jan 13 22:40:37 2005 UTC
# Line 7  GNU Classpath is free software; you can Line 7  GNU Classpath is free software; you can
7  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)  the Free Software Foundation; either version 2, or (at your option)
9  any later version.  any later version.
10    
11  GNU Classpath is distributed in the hope that it will be useful, but  GNU Classpath is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Line 51  import java.util.Arrays; Line 51  import java.util.Arrays;
51   * <p>Where the "xxx" represents three bits that should be ignored, and   * <p>Where the "xxx" represents three bits that should be ignored, and
52   * can have any value.   * can have any value.
53   *   *
54   * @author Casey Marshall (rsdio@metastatic.org)   * @author Casey Marshall (csm@gnu.org)
55   */   */
56  public class BitString implements Cloneable, Comparable, java.io.Serializable  public class BitString implements Cloneable, Comparable
57  {  {
58    
59    // Fields.    // Fields.
# Line 288  public class BitString implements Clonea Line 288  public class BitString implements Clonea
288    
289    public boolean equals(Object o)    public boolean equals(Object o)
290    {    {
291      if (this == o)      if (!(o instanceof BitString))
292        return true;        return false;
293      BitString that = (BitString) o;      BitString that = (BitString) o;
294      // True for cloned instances.      // True for cloned instances.
295      if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits)      if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26