{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5349","repository_url":"https://api.github.com/repos/checkstyle/checkstyle","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5349/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5349/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5349/events","html_url":"https://github.com/checkstyle/checkstyle/issues/5349","id":281347784,"number":5349,"title":"Checkstyle throwing exception on parsing Lombok based sources","user":{"login":"olivergierke","id":128577,"avatar_url":"https://avatars1.githubusercontent.com/u/128577?v=4","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-12T11:21:00Z","updated_at":"2017-12-12T12:44:13Z","closed_at":null,"author_association":"NONE","body":"Using Checkstyle 7.3 in a Sonar build and a codebase using Lombok, Checkstyle produces an exception with the message:\r\n\r\n```\r\nUnexpected container AST: ANNOTATION…\r\n```\r\n\r\nThe offending line it is pointing to is [this](https://github.com/spring-projects/spring-data-commons/blob/9f220d5c159cc78b0d701829b3074366a4e8fa08/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java#L65), i.e.:\r\n\r\n```java\r\nprivate final @Getter(onMethod = @__(@Nullable)) Method getter;\r\n```\r\n\r\nSee the usage of Lombok's way of making sure the getter method generated for the field carries the `@Nullable` annotation.\r\n\r\nI currently work around the issue by delomboking the sources and let Sonar (and thus Checkstyle) operate on that but that causes sources ending up that are not the actual ones and essentially any git blame information missing."},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/351040785","html_url":"https://github.com/checkstyle/checkstyle/issues/5349#issuecomment-351040785","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5349","id":351040785,"user":{"login":"rnveach","id":5427943,"avatar_url":"https://avatars1.githubusercontent.com/u/5427943?v=4","gravatar_id":"","url":"https://api.github.com/users/rnveach","html_url":"https://github.com/rnveach","followers_url":"https://api.github.com/users/rnveach/followers","following_url":"https://api.github.com/users/rnveach/following{/other_user}","gists_url":"https://api.github.com/users/rnveach/gists{/gist_id}","starred_url":"https://api.github.com/users/rnveach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnveach/subscriptions","organizations_url":"https://api.github.com/users/rnveach/orgs","repos_url":"https://api.github.com/users/rnveach/repos","events_url":"https://api.github.com/users/rnveach/events{/privacy}","received_events_url":"https://api.github.com/users/rnveach/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T12:44:13Z","updated_at":"2017-12-12T12:44:13Z","author_association":"MEMBER","body":"probably a duplicate of #4633"}}
{"actor":{"display_login":"rnveach"}}