{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/59","labels_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/59/comments","events_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/59/events","html_url":"https://github.com/JetBrains/Grammar-Kit/issues/59","id":55962685,"number":59,"title":"Erroneous @Nullable annotation on generated getter","user":{"login":"Alphasite","id":786501,"avatar_url":"https://avatars.githubusercontent.com/u/786501?v=3","gravatar_id":"","url":"https://api.github.com/users/Alphasite","html_url":"https://github.com/Alphasite","followers_url":"https://api.github.com/users/Alphasite/followers","following_url":"https://api.github.com/users/Alphasite/following{/other_user}","gists_url":"https://api.github.com/users/Alphasite/gists{/gist_id}","starred_url":"https://api.github.com/users/Alphasite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alphasite/subscriptions","organizations_url":"https://api.github.com/users/Alphasite/orgs","repos_url":"https://api.github.com/users/Alphasite/repos","events_url":"https://api.github.com/users/Alphasite/events{/privacy}","received_events_url":"https://api.github.com/users/Alphasite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T21:52:46Z","updated_at":"2015-07-09T22:26:04Z","closed_at":null,"body":"In my grammar the automatically generated getter seems to be producing a slightly odd result for getUpperBound, which is marked as @Nullable, when it should be @NotNull just like its twin getLowerBound.\r\n\r\n    range ::= LSB string RANGE_OPERATOR string RSB {\r\n\t    methods = [\r\n\t\t    getLowerBound=\"/string[0]\"\r\n\t\t    getUpperBound=\"/string[1]\"\r\n\t    ]\r\n    }\r\n\r\ngenerates:\r\n\r\n    @NotNull\r\n    List<EBNFString> getStringList();\r\n\r\n    @NotNull\r\n    EBNFString getGetLowerBound();\r\n\r\n    @Nullable\r\n    EBNFString getGetUpperBound();\r\n\r\nFor the interface and unless I'm mistaken that last method should definitely be @NotNull like the lower bound is."},"comment":{"url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/comments/120164984","html_url":"https://github.com/JetBrains/Grammar-Kit/issues/59#issuecomment-120164984","issue_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/59","id":120164984,"user":{"login":"gregsh","id":958865,"avatar_url":"https://avatars.githubusercontent.com/u/958865?v=3","gravatar_id":"","url":"https://api.github.com/users/gregsh","html_url":"https://github.com/gregsh","followers_url":"https://api.github.com/users/gregsh/followers","following_url":"https://api.github.com/users/gregsh/following{/other_user}","gists_url":"https://api.github.com/users/gregsh/gists{/gist_id}","starred_url":"https://api.github.com/users/gregsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregsh/subscriptions","organizations_url":"https://api.github.com/users/gregsh/orgs","repos_url":"https://api.github.com/users/gregsh/repos","events_url":"https://api.github.com/users/gregsh/events{/privacy}","received_events_url":"https://api.github.com/users/gregsh/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T22:26:03Z","updated_at":"2015-07-09T22:26:03Z","body":"Right. For lists the exact quantity logic is not currently implemented."}}