Changeset 1391 for branches/GNU/src/gcc/libjava/javax/naming/RefAddr.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/javax/naming/RefAddr.java (modified) (4 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/javax/naming/RefAddr.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 62 62 * Set by the constructor and returned by the getType() method. 63 63 */ 64 protected finalString addrType;64 protected String addrType; 65 65 66 66 /** … … 72 72 protected RefAddr(String addrType) 73 73 { 74 if (addrType == null)75 throw new NullPointerException("addrType cannot be null");76 74 if (addrType == null) 75 throw new NullPointerException("addrType cannot be null"); 76 77 77 this.addrType = addrType; 78 78 } … … 99 99 * content of this object. 100 100 */ 101 public boolean equals (Object o)101 public boolean equals(Object o) 102 102 { 103 103 if (o instanceof RefAddr) … … 105 105 RefAddr refAddr = (RefAddr) o; 106 106 if (this.getType().equals(refAddr.getType())) 107 {108 Object c1 = this.getContent();109 Object c2 = refAddr.getContent();110 if (c1 == null)111 return c2 == null;112 else113 return c1.equals(c2);114 }107 { 108 Object c1 = this.getContent(); 109 Object c2 = refAddr.getContent(); 110 if (c1 == null) 111 return c2 == null; 112 else 113 return c1.equals(c2); 114 } 115 115 } 116 116 return false; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
