[YANGTOOLS-751] Fix SourceIdentifier.getRevision() Created: 24/Feb/17  Updated: 10/Apr/22  Resolved: 27/Feb/17

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

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

Operating System: All
Platform: All


Issue Links:
Blocks
blocks YANGTOOLS-641 yang-maven-plugin: allow flexible Sch... Resolved
External issue ID: 7850

 Description   

getRevision() is documented to return null when the revision is not present, but the actual implementation was broken by https://git.opendaylight.org/gerrit/9646 and returns a specialized string.

This breaks at least file generation, as it appends '@0000-00-00' where it should not. Fix this problem and drive users to adjust to null – at least netconf relies on this magic string rather than the API contract.



 Comments   
Comment by Robert Varga [ 24/Feb/17 ]

netconf:
https://git.opendaylight.org/gerrit/52245
https://git.opendaylight.org/gerrit/52246
https://git.opendaylight.org/gerrit/52247
https://git.opendaylight.org/gerrit/52248

Comment by Robert Varga [ 24/Feb/17 ]

yangtools:

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