/*
- * Copyright (c) 2013-2015 Cisco Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2013, 2015 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,
import com.google.common.collect.ImmutableSet;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
import java.util.Set;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
import org.opendaylight.yangtools.yang.model.api.SchemaNode;
import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
import org.opendaylight.yangtools.yang.model.api.UsesNode;
+/**
+ * @deprecated Pre-Beryllium implementation, scheduled for removal.
+ */
+@Deprecated
final class UsesNodeImpl implements UsesNode {
private final SchemaPath groupingPath;
ImmutableSet<AugmentationSchema> augmentations;
return refines;
}
- @SuppressWarnings("unused")
public List<UnknownSchemaNode> getUnknownSchemaNodes() {
return unknownNodes;
}
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((groupingPath == null) ? 0 : groupingPath.hashCode());
- result = prime * result + ((augmentations == null) ? 0 : augmentations.hashCode());
+ result = prime * result + Objects.hashCode(groupingPath);
+ result = prime * result + Objects.hashCode(augmentations);
return result;
}
sb.append("]");
return sb.toString();
}
-}
\ No newline at end of file
+}