{"action":"opened","issue":{"url":"https://api.github.com/repos/immutables/immutables/issues/413","repository_url":"https://api.github.com/repos/immutables/immutables","labels_url":"https://api.github.com/repos/immutables/immutables/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/immutables/immutables/issues/413/comments","events_url":"https://api.github.com/repos/immutables/immutables/issues/413/events","html_url":"https://github.com/immutables/immutables/issues/413","id":170342785,"number":413,"title":"headerComments works only sometimes","user":{"login":"cal101","id":8849947,"avatar_url":"https://avatars.githubusercontent.com/u/8849947?v=3","gravatar_id":"","url":"https://api.github.com/users/cal101","html_url":"https://github.com/cal101","followers_url":"https://api.github.com/users/cal101/followers","following_url":"https://api.github.com/users/cal101/following{/other_user}","gists_url":"https://api.github.com/users/cal101/gists{/gist_id}","starred_url":"https://api.github.com/users/cal101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cal101/subscriptions","organizations_url":"https://api.github.com/users/cal101/orgs","repos_url":"https://api.github.com/users/cal101/repos","events_url":"https://api.github.com/users/cal101/events{/privacy}","received_events_url":"https://api.github.com/users/cal101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-10T06:58:09Z","updated_at":"2016-08-10T06:58:09Z","closed_at":null,"body":"Hi!\r\n\r\nTo get aware of changes in the generated files by generator or annotation changes I check the generated files into our version system. \r\nSo I noticed that the effect of \"headerComments\" is sometimes false, sometimes true.\r\nEven If I set it explicitly to true in style annotation.\r\nHere the result I sometimes get after setting it to true:\r\n\r\n   /**\r\n-   *@see PropertyDefinition#UIP_FACET \r\n+   * @return The value of the {@code isFacetEnabled} attribute\r\n    */\r\n   @Override\r\n   public boolean isFacetEnabled() {\r\n\r\nYou see that my comment was replaced with standard comment.\r\n\r\nOtherwise it's working great.\r\n\r\nCal\r\n\r\n\r\nP.S. \r\nRegarding our discussion about converting a deep structure with/without some context:\r\nFor Deep structures I use a thread local based approach to get the same immutable instance for the same mutable instance when converting my graph of mutable objects to immutable. Works good enough for entities so far.\r\nOne piece is missing and I had to hack it:\r\nWe have a tree of topics and one of them is the default topic which is just an extra reference to the Topic on TopicTree level:\r\n\r\nTopicTree:\r\n   Map<String,Topic> getTopics()\r\n   Topic getDefaultTopic()\r\n\r\nI could not find a way to make return getDefaultTopic return one of the converted Topic instances from the Map without smelly hacking."}}
{"actor":{"display_login":"cal101"}}