[MDSAL-395] Get rid of "get" prefix because it conflicts with getters Created: 15/Nov/18 Updated: 20/Mar/19 Resolved: 20/Mar/19 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.0 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
This is (hopefully) the last straggler in the 'get*' family, after getKey() and getAugmentation(). Using "get" prefix followed by a capital letter infringes on namespace reserved for user-defined data, such as:
grouping foo {
leaf implemented-interface {
type string;
}
}
We suddenly have two getters differing only by return type, which is a JLS violation. Get rid of this by renaming to "implementedInterface". |