[YANGTOOLS-168] Examine SchemaContextUtil.findCorrectTargetFromGrouping() Created: 16/May/14  Updated: 10/Apr/22  Resolved: 11/Jun/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 1024

 Description   

for (UsesNode u : m.getUses()) {
SchemaNode targetGrouping = findNodeInSchemaContext(ctx, u.getGroupingPath().getPath());
if (!(targetGrouping instanceof GroupingDefinition))

{ throw new IllegalArgumentException(String.format("Failed to generate code for augment in %s", u)); }

GroupingDefinition gr = (GroupingDefinition) targetGrouping;
result = gr.getDataChildByName(node.getQName().getLocalName());
}

Seems to be missing break; after result.



 Comments   
Comment by Robert Varga [ 16/May/14 ]

Candidate patch: https://git.opendaylight.org/gerrit/#/c/7113/

Comment by Martin Vitez [ 23/May/14 ]

Added comments in code to describe what is going on in method.

Generated at Wed Feb 07 20:52:27 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.