summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a2e5f1e)
We want to be identifying everyone who is touching this state,
as it ends up logically referencing the parent node and is going
away.
JIRA: YANGTOOLS-1131
Change-Id: I33a93bec07e6a3a12afc920eb6fe685fa4339f9b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* properly updated there.
*/
@Override
* properly updated there.
*/
@Override
public Optional<SchemaPath> getSchemaPath() {
return substatementGetSchemaPath();
}
public Optional<SchemaPath> getSchemaPath() {
return substatementGetSchemaPath();
}
public Optional<SchemaPath> getSchemaPath() {
return Optional.of(SchemaPath.ROOT);
}
public Optional<SchemaPath> getSchemaPath() {
return Optional.of(SchemaPath.ROOT);
}
- // Exists only to support SubstatementContext/InferredStatementContext
+ // Exists only to support {SubstatementContext,InferredStatementContext}.getSchemaPath()
+ @Deprecated
final @NonNull Optional<SchemaPath> substatementGetSchemaPath() {
SchemaPath local = schemaPath;
if (local == null) {
synchronized (this) {
local = schemaPath;
if (local == null) {
final @NonNull Optional<SchemaPath> substatementGetSchemaPath() {
SchemaPath local = schemaPath;
if (local == null) {
synchronized (this) {
local = schemaPath;
if (local == null) {
- local = createSchemaPath(coerceParentContext());
- schemaPath = local;
+ schemaPath = local = createSchemaPath(coerceParentContext());
return Optional.ofNullable(local);
}
return Optional.ofNullable(local);
}
private SchemaPath createSchemaPath(final Mutable<?, ?, ?> parent) {
final Optional<SchemaPath> maybeParentPath = parent.getSchemaPath();
verify(maybeParentPath.isPresent(), "Parent %s does not have a SchemaPath", parent);
private SchemaPath createSchemaPath(final Mutable<?, ?, ?> parent) {
final Optional<SchemaPath> maybeParentPath = parent.getSchemaPath();
verify(maybeParentPath.isPresent(), "Parent %s does not have a SchemaPath", parent);
* properly updated there.
*/
@Override
* properly updated there.
*/
@Override
public Optional<SchemaPath> getSchemaPath() {
return substatementGetSchemaPath();
}
public Optional<SchemaPath> getSchemaPath() {
return substatementGetSchemaPath();
}
* {@link Optional#empty()} is returned.
*
* @return Optional SchemaPath
* {@link Optional#empty()} is returned.
*
* @return Optional SchemaPath
+ * @deprecated Use of SchemaPath in the context of effective statements is going away. Consider not providing this
+ * information, if your users can exist without it.
@NonNull Optional<SchemaPath> getSchemaPath();
boolean isConfiguration();
@NonNull Optional<SchemaPath> getSchemaPath();
boolean isConfiguration();