+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.controller.sal.restconf.impl.test.structures;
public class YangElement {
protected YangElement(String name) {
this.name = name;
}
-
+
public String getName() {
return name;
}
return false;
}
YangElement yangElement = (YangElement) obj;
- if (!this.name.equals(yangElement.name)) {
+ if (this.name == null) {
+ if (yangElement.name != null) {
+ return false;
+ }
+ } else if (!this.name.equals(yangElement.name)) {
return false;
}
return true;