jdk/src/share/classes/java/awt/font/TransformAttribute.java
changeset 20091 75850d176243
parent 5506 202f599c92aa
child 21278 ef8a3a2a72f2
equal deleted inserted replaced
20027:184ea8e9dc67 20091:75850d176243
   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 }