{"action":"created","comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments/30844152","id":30844152,"diff_hunk":"@@ -70,9 +102,31 @@ public Reader(Swagger swagger, ReaderConfig config) {\n     this.config = new DefaultReaderConfig(config);\n   }\n \n-  public Swagger read(Set<Class<?>> classes) {\n+  public synchronized Swagger read(Set<Class<?>> classes) {\n+\n+    listeners.clear();","path":"modules/swagger-jaxrs/src/main/java/com/wordnik/swagger/jaxrs/Reader.java","position":62,"original_position":62,"commit_id":"943f64cb0ff04ae3bcfb12c80c67f1794af19b7b","original_commit_id":"943f64cb0ff04ae3bcfb12c80c67f1794af19b7b","user":{"login":"tomtit","id":11815484,"avatar_url":"https://avatars.githubusercontent.com/u/11815484?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtit","html_url":"https://github.com/tomtit","followers_url":"https://api.github.com/users/tomtit/followers","following_url":"https://api.github.com/users/tomtit/following{/other_user}","gists_url":"https://api.github.com/users/tomtit/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtit/subscriptions","organizations_url":"https://api.github.com/users/tomtit/orgs","repos_url":"https://api.github.com/users/tomtit/repos","events_url":"https://api.github.com/users/tomtit/events{/privacy}","received_events_url":"https://api.github.com/users/tomtit/received_events","type":"User","site_admin":false},"body":"I would suggest to convert `listeners` into local variable as we reinitialize it on each read.","created_at":"2015-05-21T20:31:25Z","updated_at":"2015-05-21T20:31:25Z","html_url":"https://github.com/swagger-api/swagger-core/pull/1088#discussion_r30844152","pull_request_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088","_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments/30844152"},"html":{"href":"https://github.com/swagger-api/swagger-core/pull/1088#discussion_r30844152"},"pull_request":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088"}}},"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088","id":35874786,"html_url":"https://github.com/swagger-api/swagger-core/pull/1088","diff_url":"https://github.com/swagger-api/swagger-core/pull/1088.diff","patch_url":"https://github.com/swagger-api/swagger-core/pull/1088.patch","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1088","number":1088,"state":"open","locked":false,"title":"Extension annotations","user":{"login":"olensmar","id":1917063,"avatar_url":"https://avatars.githubusercontent.com/u/1917063?v=3","gravatar_id":"","url":"https://api.github.com/users/olensmar","html_url":"https://github.com/olensmar","followers_url":"https://api.github.com/users/olensmar/followers","following_url":"https://api.github.com/users/olensmar/following{/other_user}","gists_url":"https://api.github.com/users/olensmar/gists{/gist_id}","starred_url":"https://api.github.com/users/olensmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olensmar/subscriptions","organizations_url":"https://api.github.com/users/olensmar/orgs","repos_url":"https://api.github.com/users/olensmar/repos","events_url":"https://api.github.com/users/olensmar/events{/privacy}","received_events_url":"https://api.github.com/users/olensmar/received_events","type":"User","site_admin":false},"body":"This PR adds a number of features that allows for customisation of the generated Swagger definition:\r\n- SwaggerConfig and related annotations that allow one to define metadata at the definition level (info, consumes, produces, tags, externalDocs)\r\n- Extension-related annotations allowing one to add vendor-extensions at the info, tags and operation level\r\n- a ReaderListener interface that allows for customisation of the actual Swagger generation process\r\n- support for all these in the Reader class\r\n- a unit test to validate the correct reading of the annotations into the Swagger model","created_at":"2015-05-20T20:52:18Z","updated_at":"2015-05-21T20:31:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c38eb746031821d950c718482ad824644d106b9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088/commits","review_comments_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088/comments","review_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1088/comments","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/943f64cb0ff04ae3bcfb12c80c67f1794af19b7b","head":{"label":"swagger-api:extension-annotations","ref":"extension-annotations","sha":"943f64cb0ff04ae3bcfb12c80c67f1794af19b7b","user":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"repo":{"id":2003641,"name":"swagger-core","full_name":"swagger-api/swagger-core","owner":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swagger-api/swagger-core","description":"Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-core","forks_url":"https://api.github.com/repos/swagger-api/swagger-core/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-core/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-core/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-core/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-core/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-core/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-core/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-core/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-core/releases{/id}","created_at":"2011-07-05T23:44:11Z","updated_at":"2015-05-21T14:11:55Z","pushed_at":"2015-05-21T11:24:49Z","git_url":"git://github.com/swagger-api/swagger-core.git","ssh_url":"git@github.com:swagger-api/swagger-core.git","clone_url":"https://github.com/swagger-api/swagger-core.git","svn_url":"https://github.com/swagger-api/swagger-core","homepage":"http://swagger.io","size":29295,"stargazers_count":2579,"watchers_count":2579,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":900,"mirror_url":null,"open_issues_count":54,"forks":900,"open_issues":54,"watchers":2579,"default_branch":"master"}},"base":{"label":"swagger-api:develop_2.0","ref":"develop_2.0","sha":"a084cf6e0b7877799bacaae36f31954d69bcd7b9","user":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"repo":{"id":2003641,"name":"swagger-core","full_name":"swagger-api/swagger-core","owner":{"login":"swagger-api","id":7658037,"avatar_url":"https://avatars.githubusercontent.com/u/7658037?v=3","gravatar_id":"","url":"https://api.github.com/users/swagger-api","html_url":"https://github.com/swagger-api","followers_url":"https://api.github.com/users/swagger-api/followers","following_url":"https://api.github.com/users/swagger-api/following{/other_user}","gists_url":"https://api.github.com/users/swagger-api/gists{/gist_id}","starred_url":"https://api.github.com/users/swagger-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swagger-api/subscriptions","organizations_url":"https://api.github.com/users/swagger-api/orgs","repos_url":"https://api.github.com/users/swagger-api/repos","events_url":"https://api.github.com/users/swagger-api/events{/privacy}","received_events_url":"https://api.github.com/users/swagger-api/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swagger-api/swagger-core","description":"Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API","fork":false,"url":"https://api.github.com/repos/swagger-api/swagger-core","forks_url":"https://api.github.com/repos/swagger-api/swagger-core/forks","keys_url":"https://api.github.com/repos/swagger-api/swagger-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swagger-api/swagger-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swagger-api/swagger-core/teams","hooks_url":"https://api.github.com/repos/swagger-api/swagger-core/hooks","issue_events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/events{/number}","events_url":"https://api.github.com/repos/swagger-api/swagger-core/events","assignees_url":"https://api.github.com/repos/swagger-api/swagger-core/assignees{/user}","branches_url":"https://api.github.com/repos/swagger-api/swagger-core/branches{/branch}","tags_url":"https://api.github.com/repos/swagger-api/swagger-core/tags","blobs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swagger-api/swagger-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swagger-api/swagger-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/swagger-api/swagger-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swagger-api/swagger-core/statuses/{sha}","languages_url":"https://api.github.com/repos/swagger-api/swagger-core/languages","stargazers_url":"https://api.github.com/repos/swagger-api/swagger-core/stargazers","contributors_url":"https://api.github.com/repos/swagger-api/swagger-core/contributors","subscribers_url":"https://api.github.com/repos/swagger-api/swagger-core/subscribers","subscription_url":"https://api.github.com/repos/swagger-api/swagger-core/subscription","commits_url":"https://api.github.com/repos/swagger-api/swagger-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/swagger-api/swagger-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/swagger-api/swagger-core/contents/{+path}","compare_url":"https://api.github.com/repos/swagger-api/swagger-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swagger-api/swagger-core/merges","archive_url":"https://api.github.com/repos/swagger-api/swagger-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swagger-api/swagger-core/downloads","issues_url":"https://api.github.com/repos/swagger-api/swagger-core/issues{/number}","pulls_url":"https://api.github.com/repos/swagger-api/swagger-core/pulls{/number}","milestones_url":"https://api.github.com/repos/swagger-api/swagger-core/milestones{/number}","notifications_url":"https://api.github.com/repos/swagger-api/swagger-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/labels{/name}","releases_url":"https://api.github.com/repos/swagger-api/swagger-core/releases{/id}","created_at":"2011-07-05T23:44:11Z","updated_at":"2015-05-21T14:11:55Z","pushed_at":"2015-05-21T11:24:49Z","git_url":"git://github.com/swagger-api/swagger-core.git","ssh_url":"git@github.com:swagger-api/swagger-core.git","clone_url":"https://github.com/swagger-api/swagger-core.git","svn_url":"https://github.com/swagger-api/swagger-core","homepage":"http://swagger.io","size":29295,"stargazers_count":2579,"watchers_count":2579,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":900,"mirror_url":null,"open_issues_count":54,"forks":900,"open_issues":54,"watchers":2579,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088"},"html":{"href":"https://github.com/swagger-api/swagger-core/pull/1088"},"issue":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/1088"},"comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/issues/1088/comments"},"review_comments":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088/comments"},"review_comment":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swagger-api/swagger-core/pulls/1088/commits"},"statuses":{"href":"https://api.github.com/repos/swagger-api/swagger-core/statuses/943f64cb0ff04ae3bcfb12c80c67f1794af19b7b"}}}}