@Override
protected SchemaPath createInstance(final SchemaPath parent, final QName qname) {
- return new AbsoluteSchemaPath(parent, qname);
+ return new AbsoluteSchemaPath(parent, Preconditions.checkNotNull(qname));
}
}
@Override
protected SchemaPath createInstance(final SchemaPath parent, final QName qname) {
- return new RelativeSchemaPath(parent, qname);
+ return new RelativeSchemaPath(parent, Preconditions.checkNotNull(qname));
}
}
*/
private volatile ImmutableList<QName> legacyPath;
+ /**
+ * @deprecated This constructor will be hidden in a future release.
+ * @param parent
+ * @param qname
+ */
+ @Deprecated
protected SchemaPath(final SchemaPath parent, final QName qname) {
this.parent = parent;
this.qname = qname;