* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
+ * Modifications copyright (c) 2019 Nokia
+ * ================================================================================
*/
package org.openecomp.sdc.generator.datatypes.tosca;
public boolean equals(Object obj) {
if (this == obj)
return true;
- if (obj != null && getClass() != obj.getClass())
+ if (obj == null || getClass() != obj.getClass())
return false;
LicenseFlavor other = (LicenseFlavor) obj;
- if (other != null) {
+
if (this.feature_group_uuid == null) {
if (other.feature_group_uuid != null)
return false;
} else if (!feature_group_uuid.equals(other.feature_group_uuid))
return false;
- }
+
return true;
}