Changeset 1080 for trunk/autoquest-plugin-jfc/src/main
- Timestamp:
- 02/15/13 16:15:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java
r1009 r1080 115 115 JFCGUIElementSpec otherSpec = (JFCGUIElementSpec) other; 116 116 117 if ( (type != otherSpec.type) && ((type != null) && (!type.equals(otherSpec.type)))) {117 if (type == null ? otherSpec.type != null : !type.equals(otherSpec.type)) { 118 118 return false; 119 119 } 120 120 121 if ( (icon != otherSpec.icon) && ((icon != null) && (!icon.equals(otherSpec.icon)))) {121 if (icon == null ? otherSpec.icon != null : !icon.equals(otherSpec.icon)) { 122 122 return false; 123 123 } … … 203 203 JFCGUIElementSpec otherSpec = (JFCGUIElementSpec) other; 204 204 205 return ((name == otherSpec.name) || ((name != null) && (name.equals(otherSpec.name)))) && 206 ((type == otherSpec.type) || ((type != null) && (type.equals(otherSpec.type)))) && 207 ((icon == otherSpec.icon) || ((icon != null) && (icon.equals(otherSpec.icon)))) && 205 return 206 (name == null ? otherSpec.name == null : name.equals(otherSpec.name)) && 207 (type == null ? otherSpec.type == null : type.equals(otherSpec.type)) && 208 (icon == null ? otherSpec.icon == null : icon.equals(otherSpec.icon)) && 208 209 (index == otherSpec.index) && (elementHash == otherSpec.elementHash); 209 210 } … … 404 405 } 405 406 406 if ((name != other.name) && (name != null) &&(!name.equals(other.name))) {407 if ((name == null) || (!name.equals(other.name))) { 407 408 setName(other.name); 408 409 }
Note: See TracChangeset
for help on using the changeset viewer.