{"action":"created","comment":{"url":"https://api.github.com/repos/dropbox/djinni/pulls/comments/37104124","id":37104124,"diff_hunk":"@@ -340,6 +340,19 @@ class JavaGenerator(spec: Spec) extends Generator(spec) {\n \n         }\n \n+        w.wl\n+        w.wl(\"@Override\")\n+        w.w(\"public String toString()\").braced {\n+          w.w(s\"return \").nestedN(2) {\n+            w.wl(s\"\\042${self}{\\042 +\")\n+            for (f <- r.fields) {\n+              w.wl(s\"\\042,\\042 + \\042${idJava.field(f.ident)}=\\042 + ${idJava.field(f.ident)} +\")\n+            }\n+          }\n+          w.wl(s\"\\042}\\042;\")\n+        }","path":"src/source/JavaGenerator.scala","position":14,"original_position":14,"commit_id":"ba15a0cef1e8ad8f69a9d38f3ba42d1c26fa2867","original_commit_id":"ba15a0cef1e8ad8f69a9d38f3ba42d1c26fa2867","user":{"login":"mknejp","id":5156768,"avatar_url":"https://avatars.githubusercontent.com/u/5156768?v=3","gravatar_id":"","url":"https://api.github.com/users/mknejp","html_url":"https://github.com/mknejp","followers_url":"https://api.github.com/users/mknejp/followers","following_url":"https://api.github.com/users/mknejp/following{/other_user}","gists_url":"https://api.github.com/users/mknejp/gists{/gist_id}","starred_url":"https://api.github.com/users/mknejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mknejp/subscriptions","organizations_url":"https://api.github.com/users/mknejp/orgs","repos_url":"https://api.github.com/users/mknejp/repos","events_url":"https://api.github.com/users/mknejp/events{/privacy}","received_events_url":"https://api.github.com/users/mknejp/received_events","type":"User","site_admin":false},"body":"You can get rid of the unicode stuff by using triple quotes\r\n`s\"\"\"foo\"x\"foo\"\"\"` becomes `foo\"x\"foo`","created_at":"2015-08-14T18:19:31Z","updated_at":"2015-08-14T18:19:31Z","html_url":"https://github.com/dropbox/djinni/pull/132#discussion_r37104124","pull_request_url":"https://api.github.com/repos/dropbox/djinni/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/dropbox/djinni/pulls/comments/37104124"},"html":{"href":"https://github.com/dropbox/djinni/pull/132#discussion_r37104124"},"pull_request":{"href":"https://api.github.com/repos/dropbox/djinni/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/dropbox/djinni/pulls/132","id":42478072,"html_url":"https://github.com/dropbox/djinni/pull/132","diff_url":"https://github.com/dropbox/djinni/pull/132.diff","patch_url":"https://github.com/dropbox/djinni/pull/132.patch","issue_url":"https://api.github.com/repos/dropbox/djinni/issues/132","number":132,"state":"open","locked":false,"title":"Adds `toString()` for the Java generator","user":{"login":"steipete","id":58493,"avatar_url":"https://avatars.githubusercontent.com/u/58493?v=3","gravatar_id":"","url":"https://api.github.com/users/steipete","html_url":"https://github.com/steipete","followers_url":"https://api.github.com/users/steipete/followers","following_url":"https://api.github.com/users/steipete/following{/other_user}","gists_url":"https://api.github.com/users/steipete/gists{/gist_id}","starred_url":"https://api.github.com/users/steipete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steipete/subscriptions","organizations_url":"https://api.github.com/users/steipete/orgs","repos_url":"https://api.github.com/users/steipete/repos","events_url":"https://api.github.com/users/steipete/events{/privacy}","received_events_url":"https://api.github.com/users/steipete/received_events","type":"User","site_admin":false},"body":"Similar to #131, implements `toString()` for the Java generator for easier debugging.","created_at":"2015-08-14T17:23:58Z","updated_at":"2015-08-14T18:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec2c63c1b896aa3a8c635c15d9e577aadf6da08d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dropbox/djinni/pulls/132/commits","review_comments_url":"https://api.github.com/repos/dropbox/djinni/pulls/132/comments","review_comment_url":"https://api.github.com/repos/dropbox/djinni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dropbox/djinni/issues/132/comments","statuses_url":"https://api.github.com/repos/dropbox/djinni/statuses/ba15a0cef1e8ad8f69a9d38f3ba42d1c26fa2867","head":{"label":"PSPDFKit-labs:peter/java-toString","ref":"peter/java-toString","sha":"ba15a0cef1e8ad8f69a9d38f3ba42d1c26fa2867","user":{"login":"PSPDFKit-labs","id":10983927,"avatar_url":"https://avatars.githubusercontent.com/u/10983927?v=3","gravatar_id":"","url":"https://api.github.com/users/PSPDFKit-labs","html_url":"https://github.com/PSPDFKit-labs","followers_url":"https://api.github.com/users/PSPDFKit-labs/followers","following_url":"https://api.github.com/users/PSPDFKit-labs/following{/other_user}","gists_url":"https://api.github.com/users/PSPDFKit-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/PSPDFKit-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PSPDFKit-labs/subscriptions","organizations_url":"https://api.github.com/users/PSPDFKit-labs/orgs","repos_url":"https://api.github.com/users/PSPDFKit-labs/repos","events_url":"https://api.github.com/users/PSPDFKit-labs/events{/privacy}","received_events_url":"https://api.github.com/users/PSPDFKit-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":34791867,"name":"djinni","full_name":"PSPDFKit-labs/djinni","owner":{"login":"PSPDFKit-labs","id":10983927,"avatar_url":"https://avatars.githubusercontent.com/u/10983927?v=3","gravatar_id":"","url":"https://api.github.com/users/PSPDFKit-labs","html_url":"https://github.com/PSPDFKit-labs","followers_url":"https://api.github.com/users/PSPDFKit-labs/followers","following_url":"https://api.github.com/users/PSPDFKit-labs/following{/other_user}","gists_url":"https://api.github.com/users/PSPDFKit-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/PSPDFKit-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PSPDFKit-labs/subscriptions","organizations_url":"https://api.github.com/users/PSPDFKit-labs/orgs","repos_url":"https://api.github.com/users/PSPDFKit-labs/repos","events_url":"https://api.github.com/users/PSPDFKit-labs/events{/privacy}","received_events_url":"https://api.github.com/users/PSPDFKit-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PSPDFKit-labs/djinni","description":"A tool for generating cross-language type declarations and interface bindings.","fork":true,"url":"https://api.github.com/repos/PSPDFKit-labs/djinni","forks_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/forks","keys_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/teams","hooks_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/hooks","issue_events_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/issues/events{/number}","events_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/events","assignees_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/assignees{/user}","branches_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/branches{/branch}","tags_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/tags","blobs_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/git/refs{/sha}","trees_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/statuses/{sha}","languages_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/languages","stargazers_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/stargazers","contributors_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/contributors","subscribers_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/subscribers","subscription_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/subscription","commits_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/commits{/sha}","git_commits_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/git/commits{/sha}","comments_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/comments{/number}","issue_comment_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/issues/comments{/number}","contents_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/contents/{+path}","compare_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/merges","archive_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/downloads","issues_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/issues{/number}","pulls_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/pulls{/number}","milestones_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/milestones{/number}","notifications_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/labels{/name}","releases_url":"https://api.github.com/repos/PSPDFKit-labs/djinni/releases{/id}","created_at":"2015-04-29T12:13:03Z","updated_at":"2015-04-29T12:36:50Z","pushed_at":"2015-08-14T17:52:22Z","git_url":"git://github.com/PSPDFKit-labs/djinni.git","ssh_url":"git@github.com:PSPDFKit-labs/djinni.git","clone_url":"https://github.com/PSPDFKit-labs/djinni.git","svn_url":"https://github.com/PSPDFKit-labs/djinni","homepage":"","size":2349,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dropbox:master","ref":"master","sha":"268b02018616b48aad47b4170d9f1170a4576140","user":{"login":"dropbox","id":559357,"avatar_url":"https://avatars.githubusercontent.com/u/559357?v=3","gravatar_id":"","url":"https://api.github.com/users/dropbox","html_url":"https://github.com/dropbox","followers_url":"https://api.github.com/users/dropbox/followers","following_url":"https://api.github.com/users/dropbox/following{/other_user}","gists_url":"https://api.github.com/users/dropbox/gists{/gist_id}","starred_url":"https://api.github.com/users/dropbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropbox/subscriptions","organizations_url":"https://api.github.com/users/dropbox/orgs","repos_url":"https://api.github.com/users/dropbox/repos","events_url":"https://api.github.com/users/dropbox/events{/privacy}","received_events_url":"https://api.github.com/users/dropbox/received_events","type":"Organization","site_admin":false},"repo":{"id":23806326,"name":"djinni","full_name":"dropbox/djinni","owner":{"login":"dropbox","id":559357,"avatar_url":"https://avatars.githubusercontent.com/u/559357?v=3","gravatar_id":"","url":"https://api.github.com/users/dropbox","html_url":"https://github.com/dropbox","followers_url":"https://api.github.com/users/dropbox/followers","following_url":"https://api.github.com/users/dropbox/following{/other_user}","gists_url":"https://api.github.com/users/dropbox/gists{/gist_id}","starred_url":"https://api.github.com/users/dropbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropbox/subscriptions","organizations_url":"https://api.github.com/users/dropbox/orgs","repos_url":"https://api.github.com/users/dropbox/repos","events_url":"https://api.github.com/users/dropbox/events{/privacy}","received_events_url":"https://api.github.com/users/dropbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dropbox/djinni","description":"A tool for generating cross-language type declarations and interface bindings.","fork":false,"url":"https://api.github.com/repos/dropbox/djinni","forks_url":"https://api.github.com/repos/dropbox/djinni/forks","keys_url":"https://api.github.com/repos/dropbox/djinni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dropbox/djinni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dropbox/djinni/teams","hooks_url":"https://api.github.com/repos/dropbox/djinni/hooks","issue_events_url":"https://api.github.com/repos/dropbox/djinni/issues/events{/number}","events_url":"https://api.github.com/repos/dropbox/djinni/events","assignees_url":"https://api.github.com/repos/dropbox/djinni/assignees{/user}","branches_url":"https://api.github.com/repos/dropbox/djinni/branches{/branch}","tags_url":"https://api.github.com/repos/dropbox/djinni/tags","blobs_url":"https://api.github.com/repos/dropbox/djinni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dropbox/djinni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dropbox/djinni/git/refs{/sha}","trees_url":"https://api.github.com/repos/dropbox/djinni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dropbox/djinni/statuses/{sha}","languages_url":"https://api.github.com/repos/dropbox/djinni/languages","stargazers_url":"https://api.github.com/repos/dropbox/djinni/stargazers","contributors_url":"https://api.github.com/repos/dropbox/djinni/contributors","subscribers_url":"https://api.github.com/repos/dropbox/djinni/subscribers","subscription_url":"https://api.github.com/repos/dropbox/djinni/subscription","commits_url":"https://api.github.com/repos/dropbox/djinni/commits{/sha}","git_commits_url":"https://api.github.com/repos/dropbox/djinni/git/commits{/sha}","comments_url":"https://api.github.com/repos/dropbox/djinni/comments{/number}","issue_comment_url":"https://api.github.com/repos/dropbox/djinni/issues/comments{/number}","contents_url":"https://api.github.com/repos/dropbox/djinni/contents/{+path}","compare_url":"https://api.github.com/repos/dropbox/djinni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dropbox/djinni/merges","archive_url":"https://api.github.com/repos/dropbox/djinni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dropbox/djinni/downloads","issues_url":"https://api.github.com/repos/dropbox/djinni/issues{/number}","pulls_url":"https://api.github.com/repos/dropbox/djinni/pulls{/number}","milestones_url":"https://api.github.com/repos/dropbox/djinni/milestones{/number}","notifications_url":"https://api.github.com/repos/dropbox/djinni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dropbox/djinni/labels{/name}","releases_url":"https://api.github.com/repos/dropbox/djinni/releases{/id}","created_at":"2014-09-08T20:09:32Z","updated_at":"2015-08-14T13:24:23Z","pushed_at":"2015-08-14T17:51:05Z","git_url":"git://github.com/dropbox/djinni.git","ssh_url":"git@github.com:dropbox/djinni.git","clone_url":"https://github.com/dropbox/djinni.git","svn_url":"https://github.com/dropbox/djinni","homepage":"","size":3478,"stargazers_count":701,"watchers_count":701,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":43,"forks":85,"open_issues":43,"watchers":701,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dropbox/djinni/pulls/132"},"html":{"href":"https://github.com/dropbox/djinni/pull/132"},"issue":{"href":"https://api.github.com/repos/dropbox/djinni/issues/132"},"comments":{"href":"https://api.github.com/repos/dropbox/djinni/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/dropbox/djinni/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/dropbox/djinni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dropbox/djinni/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/dropbox/djinni/statuses/ba15a0cef1e8ad8f69a9d38f3ba42d1c26fa2867"}}}}