equal
deleted
inserted
replaced
139 * whose transform is equal to this <code>TransformAttribute</code>'s |
139 * whose transform is equal to this <code>TransformAttribute</code>'s |
140 * transform. |
140 * transform. |
141 * @since 1.6 |
141 * @since 1.6 |
142 */ |
142 */ |
143 public boolean equals(Object rhs) { |
143 public boolean equals(Object rhs) { |
144 try { |
144 if (rhs != null) { |
145 TransformAttribute that = (TransformAttribute)rhs; |
145 try { |
146 if (transform == null) { |
146 TransformAttribute that = (TransformAttribute)rhs; |
147 return that.transform == null; |
147 if (transform == null) { |
|
148 return that.transform == null; |
|
149 } |
|
150 return transform.equals(that.transform); |
148 } |
151 } |
149 return transform.equals(that.transform); |
152 catch (ClassCastException e) { |
150 } |
153 } |
151 catch (ClassCastException e) { |
|
152 } |
154 } |
153 return false; |
155 return false; |
154 } |
156 } |
155 } |
157 } |