{"action":"created","comment":{"url":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments/27500819","id":27500819,"diff_hunk":"@@ -139,4 +139,214 @@ The compiler issues warnings specific to `@Nullable`/`@NotNull` in the following\n  - a `@Nullable` value is assigned to a not-null location (including passing parameters and receivers to functions/properties);\n  - a nullable value is assigned to a `@NotNull` location;\n  - a `@NotNull` value is dereferenced with a safe call (`?.`), used in `!!` or on the left-hand side of an elvis operator `?:`;\n- - a `@NotNull` value is compared with `null` through `==`, `!=`, `===` or `!==`\n\\ No newline at end of file\n+ - a `@NotNull` value is compared with `null` through `==`, `!=`, `===` or `!==`\n+\n+## More precise type information from annotations\n+\n+Goals:\n+ - Catch more errors related to nullability in case of Java interop\n+ - Keep all class hierarchies consistent at all times (no hierarchy errors related to incorrect annotations)\n+ - (!) If the code compiled with annotations, it should always compile without annotations (because external annotations may disappear)\n+\n+ This process never results in errors. On any mismatch, a bare platform signature is used (and a warning issued).\n+\n+### Annotations recognized by the compiler\n+\n+- `org.jetbrains.annotations.Nullable` - value may be null/accepts nulls\n+- `org.jetbrains.annotations.NotNull` - value can not be null/passing null leads to an exception\n+- `org.jetbrains.annotations.ReadOnly` - only non-mutating methods can be used on this collection/iterable/iterator\n+- `org.jetbrains.annotations.Mutable` - only non-mutating methods can be used on this collection/iterable/iterator","path":"spec-docs/flexible-java-types.md","position":22,"original_position":22,"commit_id":"eb5d387650e7b6bd2f317cb5425cbbe8c60a164e","original_commit_id":"eb5d387650e7b6bd2f317cb5425cbbe8c60a164e","user":{"login":"VladimirReshetnikov","id":1231606,"avatar_url":"https://avatars.githubusercontent.com/u/1231606?v=3","gravatar_id":"","url":"https://api.github.com/users/VladimirReshetnikov","html_url":"https://github.com/VladimirReshetnikov","followers_url":"https://api.github.com/users/VladimirReshetnikov/followers","following_url":"https://api.github.com/users/VladimirReshetnikov/following{/other_user}","gists_url":"https://api.github.com/users/VladimirReshetnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/VladimirReshetnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladimirReshetnikov/subscriptions","organizations_url":"https://api.github.com/users/VladimirReshetnikov/orgs","repos_url":"https://api.github.com/users/VladimirReshetnikov/repos","events_url":"https://api.github.com/users/VladimirReshetnikov/events{/privacy}","received_events_url":"https://api.github.com/users/VladimirReshetnikov/received_events","type":"User","site_admin":false},"body":"Yes, looks like a copy-paste mistake.","created_at":"2015-03-31T17:17:50Z","updated_at":"2015-03-31T17:17:50Z","html_url":"https://github.com/JetBrains/kotlin/pull/612#discussion_r27500819","pull_request_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/612","_links":{"self":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments/27500819"},"html":{"href":"https://github.com/JetBrains/kotlin/pull/612#discussion_r27500819"},"pull_request":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/612"}}},"pull_request":{"url":"https://api.github.com/repos/JetBrains/kotlin/pulls/612","id":31821946,"html_url":"https://github.com/JetBrains/kotlin/pull/612","diff_url":"https://github.com/JetBrains/kotlin/pull/612.diff","patch_url":"https://github.com/JetBrains/kotlin/pull/612.patch","issue_url":"https://api.github.com/repos/JetBrains/kotlin/issues/612","number":612,"state":"open","locked":false,"title":"[Spec] Enhancing Java declarations with annotations","user":{"login":"abreslav","id":888318,"avatar_url":"https://avatars.githubusercontent.com/u/888318?v=3","gravatar_id":"","url":"https://api.github.com/users/abreslav","html_url":"https://github.com/abreslav","followers_url":"https://api.github.com/users/abreslav/followers","following_url":"https://api.github.com/users/abreslav/following{/other_user}","gists_url":"https://api.github.com/users/abreslav/gists{/gist_id}","starred_url":"https://api.github.com/users/abreslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abreslav/subscriptions","organizations_url":"https://api.github.com/users/abreslav/orgs","repos_url":"https://api.github.com/users/abreslav/repos","events_url":"https://api.github.com/users/abreslav/events{/privacy}","received_events_url":"https://api.github.com/users/abreslav/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-24T12:38:14Z","updated_at":"2015-03-31T17:17:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd144ccbe22941e06d083f3957ad3ecfa4a6690c","assignee":{"login":"abreslav","id":888318,"avatar_url":"https://avatars.githubusercontent.com/u/888318?v=3","gravatar_id":"","url":"https://api.github.com/users/abreslav","html_url":"https://github.com/abreslav","followers_url":"https://api.github.com/users/abreslav/followers","following_url":"https://api.github.com/users/abreslav/following{/other_user}","gists_url":"https://api.github.com/users/abreslav/gists{/gist_id}","starred_url":"https://api.github.com/users/abreslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abreslav/subscriptions","organizations_url":"https://api.github.com/users/abreslav/orgs","repos_url":"https://api.github.com/users/abreslav/repos","events_url":"https://api.github.com/users/abreslav/events{/privacy}","received_events_url":"https://api.github.com/users/abreslav/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/JetBrains/kotlin/milestones/1","html_url":"https://github.com/JetBrains/kotlin/milestones/M12","labels_url":"https://api.github.com/repos/JetBrains/kotlin/milestones/1/labels","id":1036192,"number":1,"title":"M12","description":null,"creator":{"login":"abreslav","id":888318,"avatar_url":"https://avatars.githubusercontent.com/u/888318?v=3","gravatar_id":"","url":"https://api.github.com/users/abreslav","html_url":"https://github.com/abreslav","followers_url":"https://api.github.com/users/abreslav/followers","following_url":"https://api.github.com/users/abreslav/following{/other_user}","gists_url":"https://api.github.com/users/abreslav/gists{/gist_id}","starred_url":"https://api.github.com/users/abreslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abreslav/subscriptions","organizations_url":"https://api.github.com/users/abreslav/orgs","repos_url":"https://api.github.com/users/abreslav/repos","events_url":"https://api.github.com/users/abreslav/events{/privacy}","received_events_url":"https://api.github.com/users/abreslav/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2015-03-24T12:37:42Z","updated_at":"2015-03-31T16:45:15Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/612/commits","review_comments_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/612/comments","review_comment_url":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JetBrains/kotlin/issues/612/comments","statuses_url":"https://api.github.com/repos/JetBrains/kotlin/statuses/eb5d387650e7b6bd2f317cb5425cbbe8c60a164e","head":{"label":"JetBrains:types-from-annotations","ref":"types-from-annotations","sha":"eb5d387650e7b6bd2f317cb5425cbbe8c60a164e","user":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"repo":{"id":3432266,"name":"kotlin","full_name":"JetBrains/kotlin","owner":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JetBrains/kotlin","description":"The Kotlin Programming Language","fork":false,"url":"https://api.github.com/repos/JetBrains/kotlin","forks_url":"https://api.github.com/repos/JetBrains/kotlin/forks","keys_url":"https://api.github.com/repos/JetBrains/kotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains/kotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains/kotlin/teams","hooks_url":"https://api.github.com/repos/JetBrains/kotlin/hooks","issue_events_url":"https://api.github.com/repos/JetBrains/kotlin/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains/kotlin/events","assignees_url":"https://api.github.com/repos/JetBrains/kotlin/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains/kotlin/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains/kotlin/tags","blobs_url":"https://api.github.com/repos/JetBrains/kotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains/kotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains/kotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains/kotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains/kotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains/kotlin/languages","stargazers_url":"https://api.github.com/repos/JetBrains/kotlin/stargazers","contributors_url":"https://api.github.com/repos/JetBrains/kotlin/contributors","subscribers_url":"https://api.github.com/repos/JetBrains/kotlin/subscribers","subscription_url":"https://api.github.com/repos/JetBrains/kotlin/subscription","commits_url":"https://api.github.com/repos/JetBrains/kotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains/kotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains/kotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains/kotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains/kotlin/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains/kotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains/kotlin/merges","archive_url":"https://api.github.com/repos/JetBrains/kotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains/kotlin/downloads","issues_url":"https://api.github.com/repos/JetBrains/kotlin/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains/kotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains/kotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains/kotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains/kotlin/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains/kotlin/releases{/id}","created_at":"2012-02-13T17:29:58Z","updated_at":"2015-03-31T17:08:23Z","pushed_at":"2015-03-31T17:08:23Z","git_url":"git://github.com/JetBrains/kotlin.git","ssh_url":"git@github.com:JetBrains/kotlin.git","clone_url":"https://github.com/JetBrains/kotlin.git","svn_url":"https://github.com/JetBrains/kotlin","homepage":"http://kotlinlang.org/","size":1444782,"stargazers_count":1298,"watchers_count":1298,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":225,"mirror_url":null,"open_issues_count":21,"forks":225,"open_issues":21,"watchers":1298,"default_branch":"master"}},"base":{"label":"JetBrains:master","ref":"master","sha":"842eaa86a439e12b50ef01efe4d04cf8b66fd069","user":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"repo":{"id":3432266,"name":"kotlin","full_name":"JetBrains/kotlin","owner":{"login":"JetBrains","id":878437,"avatar_url":"https://avatars.githubusercontent.com/u/878437?v=3","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JetBrains/kotlin","description":"The Kotlin Programming Language","fork":false,"url":"https://api.github.com/repos/JetBrains/kotlin","forks_url":"https://api.github.com/repos/JetBrains/kotlin/forks","keys_url":"https://api.github.com/repos/JetBrains/kotlin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains/kotlin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains/kotlin/teams","hooks_url":"https://api.github.com/repos/JetBrains/kotlin/hooks","issue_events_url":"https://api.github.com/repos/JetBrains/kotlin/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains/kotlin/events","assignees_url":"https://api.github.com/repos/JetBrains/kotlin/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains/kotlin/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains/kotlin/tags","blobs_url":"https://api.github.com/repos/JetBrains/kotlin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains/kotlin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains/kotlin/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains/kotlin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains/kotlin/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains/kotlin/languages","stargazers_url":"https://api.github.com/repos/JetBrains/kotlin/stargazers","contributors_url":"https://api.github.com/repos/JetBrains/kotlin/contributors","subscribers_url":"https://api.github.com/repos/JetBrains/kotlin/subscribers","subscription_url":"https://api.github.com/repos/JetBrains/kotlin/subscription","commits_url":"https://api.github.com/repos/JetBrains/kotlin/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains/kotlin/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains/kotlin/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains/kotlin/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains/kotlin/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains/kotlin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains/kotlin/merges","archive_url":"https://api.github.com/repos/JetBrains/kotlin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains/kotlin/downloads","issues_url":"https://api.github.com/repos/JetBrains/kotlin/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains/kotlin/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains/kotlin/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains/kotlin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains/kotlin/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains/kotlin/releases{/id}","created_at":"2012-02-13T17:29:58Z","updated_at":"2015-03-31T17:08:23Z","pushed_at":"2015-03-31T17:08:23Z","git_url":"git://github.com/JetBrains/kotlin.git","ssh_url":"git@github.com:JetBrains/kotlin.git","clone_url":"https://github.com/JetBrains/kotlin.git","svn_url":"https://github.com/JetBrains/kotlin","homepage":"http://kotlinlang.org/","size":1444782,"stargazers_count":1298,"watchers_count":1298,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":225,"mirror_url":null,"open_issues_count":21,"forks":225,"open_issues":21,"watchers":1298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/612"},"html":{"href":"https://github.com/JetBrains/kotlin/pull/612"},"issue":{"href":"https://api.github.com/repos/JetBrains/kotlin/issues/612"},"comments":{"href":"https://api.github.com/repos/JetBrains/kotlin/issues/612/comments"},"review_comments":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/612/comments"},"review_comment":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JetBrains/kotlin/pulls/612/commits"},"statuses":{"href":"https://api.github.com/repos/JetBrains/kotlin/statuses/eb5d387650e7b6bd2f317cb5425cbbe8c60a164e"}}}}