{"action":"created","comment":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/78138241","id":78138241,"diff_hunk":"@@ -4,4 +4,39 @@ title: Java\n permalink: /:path/\n sort_idx: 10\n ---\n-Specific per-language code style guidelines. Check style configuration files for Eclipse and IDEA. Style check also must be automated in the build process (after code styles are defined here).\n+\n+* TOC\n+{:toc}\n+\n+We follow [Google Java Style](https://google.github.io/styleguide/javaguide.html) in Kaa Java SDK.  \n+This guide describes tools which we use to check and format a code.\n+\n+# IntelliJ IDEA plugin\n+[Checkstyle](https://github.com/jshiell/checkstyle-idea) plugin installation:\n+1. Go to *File>Settings>IDE Settings>plugins*.\n+2. Click on the *Browse repositories* button.\n+3. Type *Checkstyle-idea* and install the plugin.\n+4. Download the *[configuration for the Google coding conventions](https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml)*.\n+5. Go to *File>Settings>IDE Settings>CheckStyle*.\n+6. Add the configuration file (`google_checks.xml`).\n+\n+Plugin configuration:\n+1. Go to *Analyze>Inspect code*.\n+2. Create a new profile with the checkstyle inspector.\n+\n+Plugin usage:\n+1. Go to *Analyze>Inspect code*.\n+2. Select an inspection scope and an inspection profile.\n+\n+# Eclipse plugin\n+Use the next [tutorial](http://eclipse-cs.sourceforge.net/#!/install) to install the checkstyle plugin.\n+\n+# Maven plugin\n+We use [check style plugin](https://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html) with [configuration for the Google coding conventions](https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml).\n+\n+# Automatic code formatter\n+We use IntelliJ IDEA to reformat Java source code to comply with Google Java Style.   ","path":"doc/Customization-guide/Code-style/Java/index.md","position":36,"original_position":36,"commit_id":"28043c8de86c91d8449c20a43d0c56eb9914faa4","original_commit_id":"28043c8de86c91d8449c20a43d0c56eb9914faa4","user":{"login":"ikulikov","id":8308069,"avatar_url":"https://avatars.githubusercontent.com/u/8308069?v=3","gravatar_id":"","url":"https://api.github.com/users/ikulikov","html_url":"https://github.com/ikulikov","followers_url":"https://api.github.com/users/ikulikov/followers","following_url":"https://api.github.com/users/ikulikov/following{/other_user}","gists_url":"https://api.github.com/users/ikulikov/gists{/gist_id}","starred_url":"https://api.github.com/users/ikulikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikulikov/subscriptions","organizations_url":"https://api.github.com/users/ikulikov/orgs","repos_url":"https://api.github.com/users/ikulikov/repos","events_url":"https://api.github.com/users/ikulikov/events{/privacy}","received_events_url":"https://api.github.com/users/ikulikov/received_events","type":"User","site_admin":false},"body":"In order to automate Java code formatting it is preferred to use IntelliJ IDEA with appropriate Google Java Style settings.","created_at":"2016-09-09T07:21:46Z","updated_at":"2016-09-09T07:21:46Z","html_url":"https://github.com/kaaproject/kaa/pull/1050#discussion_r78138241","pull_request_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1050","_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/78138241"},"html":{"href":"https://github.com/kaaproject/kaa/pull/1050#discussion_r78138241"},"pull_request":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1050"}}},"pull_request":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/1050","id":84461952,"html_url":"https://github.com/kaaproject/kaa/pull/1050","diff_url":"https://github.com/kaaproject/kaa/pull/1050.diff","patch_url":"https://github.com/kaaproject/kaa/pull/1050.patch","issue_url":"https://api.github.com/repos/kaaproject/kaa/issues/1050","number":1050,"state":"open","locked":false,"title":"KAA-1398: Create a Java code style page","user":{"login":"Acarus","id":9013111,"avatar_url":"https://avatars.githubusercontent.com/u/9013111?v=3","gravatar_id":"","url":"https://api.github.com/users/Acarus","html_url":"https://github.com/Acarus","followers_url":"https://api.github.com/users/Acarus/followers","following_url":"https://api.github.com/users/Acarus/following{/other_user}","gists_url":"https://api.github.com/users/Acarus/gists{/gist_id}","starred_url":"https://api.github.com/users/Acarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Acarus/subscriptions","organizations_url":"https://api.github.com/users/Acarus/orgs","repos_url":"https://api.github.com/users/Acarus/repos","events_url":"https://api.github.com/users/Acarus/events{/privacy}","received_events_url":"https://api.github.com/users/Acarus/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-08T11:43:03Z","updated_at":"2016-09-09T07:21:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73b51f05d4ac9fd4ae56b6df279cd72fca5cde6d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1050/commits","review_comments_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1050/comments","review_comment_url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaaproject/kaa/issues/1050/comments","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/28043c8de86c91d8449c20a43d0c56eb9914faa4","head":{"label":"Acarus:feature/KAA-1398","ref":"feature/KAA-1398","sha":"28043c8de86c91d8449c20a43d0c56eb9914faa4","user":{"login":"Acarus","id":9013111,"avatar_url":"https://avatars.githubusercontent.com/u/9013111?v=3","gravatar_id":"","url":"https://api.github.com/users/Acarus","html_url":"https://github.com/Acarus","followers_url":"https://api.github.com/users/Acarus/followers","following_url":"https://api.github.com/users/Acarus/following{/other_user}","gists_url":"https://api.github.com/users/Acarus/gists{/gist_id}","starred_url":"https://api.github.com/users/Acarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Acarus/subscriptions","organizations_url":"https://api.github.com/users/Acarus/orgs","repos_url":"https://api.github.com/users/Acarus/repos","events_url":"https://api.github.com/users/Acarus/events{/privacy}","received_events_url":"https://api.github.com/users/Acarus/received_events","type":"User","site_admin":false},"repo":{"id":61717900,"name":"kaa","full_name":"Acarus/kaa","owner":{"login":"Acarus","id":9013111,"avatar_url":"https://avatars.githubusercontent.com/u/9013111?v=3","gravatar_id":"","url":"https://api.github.com/users/Acarus","html_url":"https://github.com/Acarus","followers_url":"https://api.github.com/users/Acarus/followers","following_url":"https://api.github.com/users/Acarus/following{/other_user}","gists_url":"https://api.github.com/users/Acarus/gists{/gist_id}","starred_url":"https://api.github.com/users/Acarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Acarus/subscriptions","organizations_url":"https://api.github.com/users/Acarus/orgs","repos_url":"https://api.github.com/users/Acarus/repos","events_url":"https://api.github.com/users/Acarus/events{/privacy}","received_events_url":"https://api.github.com/users/Acarus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Acarus/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":true,"url":"https://api.github.com/repos/Acarus/kaa","forks_url":"https://api.github.com/repos/Acarus/kaa/forks","keys_url":"https://api.github.com/repos/Acarus/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Acarus/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Acarus/kaa/teams","hooks_url":"https://api.github.com/repos/Acarus/kaa/hooks","issue_events_url":"https://api.github.com/repos/Acarus/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/Acarus/kaa/events","assignees_url":"https://api.github.com/repos/Acarus/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/Acarus/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/Acarus/kaa/tags","blobs_url":"https://api.github.com/repos/Acarus/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Acarus/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Acarus/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/Acarus/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Acarus/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/Acarus/kaa/languages","stargazers_url":"https://api.github.com/repos/Acarus/kaa/stargazers","contributors_url":"https://api.github.com/repos/Acarus/kaa/contributors","subscribers_url":"https://api.github.com/repos/Acarus/kaa/subscribers","subscription_url":"https://api.github.com/repos/Acarus/kaa/subscription","commits_url":"https://api.github.com/repos/Acarus/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/Acarus/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/Acarus/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/Acarus/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/Acarus/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/Acarus/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Acarus/kaa/merges","archive_url":"https://api.github.com/repos/Acarus/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Acarus/kaa/downloads","issues_url":"https://api.github.com/repos/Acarus/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/Acarus/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/Acarus/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/Acarus/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Acarus/kaa/labels{/name}","releases_url":"https://api.github.com/repos/Acarus/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/Acarus/kaa/deployments","created_at":"2016-06-22T12:38:42Z","updated_at":"2016-06-22T12:38:52Z","pushed_at":"2016-09-08T12:15:33Z","git_url":"git://github.com/Acarus/kaa.git","ssh_url":"git@github.com:Acarus/kaa.git","clone_url":"https://github.com/Acarus/kaa.git","svn_url":"https://github.com/Acarus/kaa","homepage":"http://www.kaaproject.org","size":142137,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kaaproject:develop","ref":"develop","sha":"cbd839df2cd995b4c6785000f266bd90b5b86442","user":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":17839346,"name":"kaa","full_name":"kaaproject/kaa","owner":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaaproject/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":false,"url":"https://api.github.com/repos/kaaproject/kaa","forks_url":"https://api.github.com/repos/kaaproject/kaa/forks","keys_url":"https://api.github.com/repos/kaaproject/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaaproject/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaaproject/kaa/teams","hooks_url":"https://api.github.com/repos/kaaproject/kaa/hooks","issue_events_url":"https://api.github.com/repos/kaaproject/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/kaaproject/kaa/events","assignees_url":"https://api.github.com/repos/kaaproject/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/kaaproject/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/kaaproject/kaa/tags","blobs_url":"https://api.github.com/repos/kaaproject/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaaproject/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaaproject/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaaproject/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/kaaproject/kaa/languages","stargazers_url":"https://api.github.com/repos/kaaproject/kaa/stargazers","contributors_url":"https://api.github.com/repos/kaaproject/kaa/contributors","subscribers_url":"https://api.github.com/repos/kaaproject/kaa/subscribers","subscription_url":"https://api.github.com/repos/kaaproject/kaa/subscription","commits_url":"https://api.github.com/repos/kaaproject/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaaproject/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaaproject/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaaproject/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaaproject/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/kaaproject/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaaproject/kaa/merges","archive_url":"https://api.github.com/repos/kaaproject/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaaproject/kaa/downloads","issues_url":"https://api.github.com/repos/kaaproject/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/kaaproject/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/kaaproject/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/kaaproject/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaaproject/kaa/labels{/name}","releases_url":"https://api.github.com/repos/kaaproject/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/kaaproject/kaa/deployments","created_at":"2014-03-17T18:48:31Z","updated_at":"2016-09-08T01:43:03Z","pushed_at":"2016-09-09T06:57:08Z","git_url":"git://github.com/kaaproject/kaa.git","ssh_url":"git@github.com:kaaproject/kaa.git","clone_url":"https://github.com/kaaproject/kaa.git","svn_url":"https://github.com/kaaproject/kaa","homepage":"http://www.kaaproject.org","size":152264,"stargazers_count":440,"watchers_count":440,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":157,"mirror_url":null,"open_issues_count":32,"forks":157,"open_issues":32,"watchers":440,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1050"},"html":{"href":"https://github.com/kaaproject/kaa/pull/1050"},"issue":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/1050"},"comments":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/1050/comments"},"review_comments":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1050/comments"},"review_comment":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1050/commits"},"statuses":{"href":"https://api.github.com/repos/kaaproject/kaa/statuses/28043c8de86c91d8449c20a43d0c56eb9914faa4"}}}}
{"actor":{"display_login":"ikulikov"}}