{"action":"created","comment":{"url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/comments/240894816","pull_request_review_id":184028133,"id":240894816,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDg5NDgxNg==","diff_hunk":"@@ -69,20 +76,17 @@\n  *\n  */\n public class DemoTest1 {\n-\n-    /** jsonSchema. */\n-    private static String schema =\n-            \"{\\\"$schema\\\":\\\"http://json-schema.org/draft-04/schema#\\\",\\\"title\\\":\\\"/etc/fstab\\\",\\\"description\\\":\\\"JSON representation of /etc/fstab\\\",\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"swap\\\":{\\\"$ref\\\":\\\"#/definitions/mntent\\\"}},\\\"patternProperties\\\":{\\\"^/([^/]+(/[^/]+)*)?$\\\":{\\\"$ref\\\":\\\"#/definitions/mntent\\\"}},\\\"required\\\":[\\\"/\\\",\\\"swap\\\"],\\\"additionalProperties\\\":false,\\\"definitions\\\":{\\\"mntent\\\":{\\\"title\\\":\\\"mntent\\\",\\\"description\\\":\\\"An fstab entry\\\",\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"device\\\":{\\\"type\\\":\\\"string\\\"},\\\"fstype\\\":{\\\"type\\\":\\\"string\\\"},\\\"options\\\":{\\\"type\\\":\\\"array\\\",\\\"minItems\\\":1,\\\"items\\\":{\\\"type\\\":\\\"string\\\"}},\\\"dump\\\":{\\\"type\\\":\\\"integer\\\",\\\"minimum\\\":0},\\\"fsck\\\":{\\\"type\\\":\\\"integer\\\",\\\"minimum\\\":0}},\\\"required\\\":[\\\"device\\\",\\\"fstype\\\"],\\\"additionalItems\\\":false}}}\";\n-\n-    /** claim. */\n-    private static String schemaData =\n-            \"{\\\"/\\\":{\\\"device\\\":\\\"/dev/sda2\\\",\\\"fstype\\\":\\\"btrfs\\\",\\\"options\\\":[\\\"ssd\\\"]},\\\"swap\\\":{\\\"device\\\":\\\"/dev/sda2\\\",\\\"fstype\\\":\\\"swap\\\"},\\\"/tmp\\\":{\\\"device\\\":\\\"tmpfs\\\",\\\"fstype\\\":\\\"tmpfs\\\",\\\"options\\\":[\\\"size=64M\\\"]},\\\"/var/lib/mysql\\\":{\\\"device\\\":\\\"/dev/data/mysql\\\",\\\"fstype\\\":\\\"btrfs\\\"}}\";\n-\n+    \n+    /**\n+     * log4j.\n+     */\n+    private static final Logger logger = LoggerFactory.getLogger(DemoTest1.class);\n+    \n     /**\n      * main for DemoTest1.\n      * \n      */\n-    public static void main(String[] args) throws Exception {\n+    public static void main(String[] args) {","path":"src/demo/com/webank/weid/demo/DemoTest1.java","position":79,"original_position":79,"commit_id":"c4c82a9f24912898f043869dc9a5604cfab5d36e","original_commit_id":"c4c82a9f24912898f043869dc9a5604cfab5d36e","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [The method 'main(String)' has an NPath complexity of 2916](https://app.codacy.com/app/webankadmin/weidentity-java-sdk/pullRequest?prid=2692352)","created_at":"2018-12-12T06:30:17Z","updated_at":"2018-12-12T06:30:17Z","html_url":"https://github.com/webankopen/weidentity-java-sdk/pull/14#discussion_r240894816","pull_request_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/comments/240894816"},"html":{"href":"https://github.com/webankopen/weidentity-java-sdk/pull/14#discussion_r240894816"},"pull_request":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14","id":236773797,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NzczNzk3","html_url":"https://github.com/webankopen/weidentity-java-sdk/pull/14","diff_url":"https://github.com/webankopen/weidentity-java-sdk/pull/14.diff","patch_url":"https://github.com/webankopen/weidentity-java-sdk/pull/14.patch","issue_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues/14","number":14,"state":"open","locked":false,"title":"Develop","user":{"login":"zjy142214","id":39772812,"node_id":"MDQ6VXNlcjM5NzcyODEy","avatar_url":"https://avatars2.githubusercontent.com/u/39772812?v=4","gravatar_id":"","url":"https://api.github.com/users/zjy142214","html_url":"https://github.com/zjy142214","followers_url":"https://api.github.com/users/zjy142214/followers","following_url":"https://api.github.com/users/zjy142214/following{/other_user}","gists_url":"https://api.github.com/users/zjy142214/gists{/gist_id}","starred_url":"https://api.github.com/users/zjy142214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjy142214/subscriptions","organizations_url":"https://api.github.com/users/zjy142214/orgs","repos_url":"https://api.github.com/users/zjy142214/repos","events_url":"https://api.github.com/users/zjy142214/events{/privacy}","received_events_url":"https://api.github.com/users/zjy142214/received_events","type":"User","site_admin":false},"body":"## Summary\r\n- Concisely describe the issue and your solution:\r\n- Link to existing issue (type \"#\" to check):\r\n- Specify the tests done so far:\r\n\r\n## Solutions (Optional)\r\nPlease describe the details of your solution if it might be too complicated for reviewers.\r\n","created_at":"2018-12-07T07:07:45Z","updated_at":"2018-12-12T06:30:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e490083d341b84ef1fb981693f038e194098c4d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14/commits","review_comments_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14/comments","review_comment_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues/14/comments","statuses_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/statuses/c4c82a9f24912898f043869dc9a5604cfab5d36e","head":{"label":"zjy142214:develop","ref":"develop","sha":"c4c82a9f24912898f043869dc9a5604cfab5d36e","user":{"login":"zjy142214","id":39772812,"node_id":"MDQ6VXNlcjM5NzcyODEy","avatar_url":"https://avatars2.githubusercontent.com/u/39772812?v=4","gravatar_id":"","url":"https://api.github.com/users/zjy142214","html_url":"https://github.com/zjy142214","followers_url":"https://api.github.com/users/zjy142214/followers","following_url":"https://api.github.com/users/zjy142214/following{/other_user}","gists_url":"https://api.github.com/users/zjy142214/gists{/gist_id}","starred_url":"https://api.github.com/users/zjy142214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjy142214/subscriptions","organizations_url":"https://api.github.com/users/zjy142214/orgs","repos_url":"https://api.github.com/users/zjy142214/repos","events_url":"https://api.github.com/users/zjy142214/events{/privacy}","received_events_url":"https://api.github.com/users/zjy142214/received_events","type":"User","site_admin":false},"repo":{"id":160761582,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA3NjE1ODI=","name":"weidentity-java-sdk","full_name":"zjy142214/weidentity-java-sdk","private":false,"owner":{"login":"zjy142214","id":39772812,"node_id":"MDQ6VXNlcjM5NzcyODEy","avatar_url":"https://avatars2.githubusercontent.com/u/39772812?v=4","gravatar_id":"","url":"https://api.github.com/users/zjy142214","html_url":"https://github.com/zjy142214","followers_url":"https://api.github.com/users/zjy142214/followers","following_url":"https://api.github.com/users/zjy142214/following{/other_user}","gists_url":"https://api.github.com/users/zjy142214/gists{/gist_id}","starred_url":"https://api.github.com/users/zjy142214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjy142214/subscriptions","organizations_url":"https://api.github.com/users/zjy142214/orgs","repos_url":"https://api.github.com/users/zjy142214/repos","events_url":"https://api.github.com/users/zjy142214/events{/privacy}","received_events_url":"https://api.github.com/users/zjy142214/received_events","type":"User","site_admin":false},"html_url":"https://github.com/zjy142214/weidentity-java-sdk","description":null,"fork":true,"url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk","forks_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/forks","keys_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/teams","hooks_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/hooks","issue_events_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/events","assignees_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/tags","blobs_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/languages","stargazers_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/stargazers","contributors_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/contributors","subscribers_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/subscribers","subscription_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/subscription","commits_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/merges","archive_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/downloads","issues_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/zjy142214/weidentity-java-sdk/deployments","created_at":"2018-12-07T02:46:20Z","updated_at":"2018-12-07T02:46:22Z","pushed_at":"2018-12-10T10:34:16Z","git_url":"git://github.com/zjy142214/weidentity-java-sdk.git","ssh_url":"git@github.com:zjy142214/weidentity-java-sdk.git","clone_url":"https://github.com/zjy142214/weidentity-java-sdk.git","svn_url":"https://github.com/zjy142214/weidentity-java-sdk","homepage":null,"size":1481,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"webankopen:develop","ref":"develop","sha":"745566c91941aecc1933b794ca94ac7dcc70f7ad","user":{"login":"webankopen","id":44182399,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MTgyMzk5","avatar_url":"https://avatars2.githubusercontent.com/u/44182399?v=4","gravatar_id":"","url":"https://api.github.com/users/webankopen","html_url":"https://github.com/webankopen","followers_url":"https://api.github.com/users/webankopen/followers","following_url":"https://api.github.com/users/webankopen/following{/other_user}","gists_url":"https://api.github.com/users/webankopen/gists{/gist_id}","starred_url":"https://api.github.com/users/webankopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webankopen/subscriptions","organizations_url":"https://api.github.com/users/webankopen/orgs","repos_url":"https://api.github.com/users/webankopen/repos","events_url":"https://api.github.com/users/webankopen/events{/privacy}","received_events_url":"https://api.github.com/users/webankopen/received_events","type":"Organization","site_admin":false},"repo":{"id":155411577,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0MTE1Nzc=","name":"weidentity-java-sdk","full_name":"webankopen/weidentity-java-sdk","private":false,"owner":{"login":"webankopen","id":44182399,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0MTgyMzk5","avatar_url":"https://avatars2.githubusercontent.com/u/44182399?v=4","gravatar_id":"","url":"https://api.github.com/users/webankopen","html_url":"https://github.com/webankopen","followers_url":"https://api.github.com/users/webankopen/followers","following_url":"https://api.github.com/users/webankopen/following{/other_user}","gists_url":"https://api.github.com/users/webankopen/gists{/gist_id}","starred_url":"https://api.github.com/users/webankopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webankopen/subscriptions","organizations_url":"https://api.github.com/users/webankopen/orgs","repos_url":"https://api.github.com/users/webankopen/repos","events_url":"https://api.github.com/users/webankopen/events{/privacy}","received_events_url":"https://api.github.com/users/webankopen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/webankopen/weidentity-java-sdk","description":null,"fork":false,"url":"https://api.github.com/repos/webankopen/weidentity-java-sdk","forks_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/forks","keys_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/teams","hooks_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/hooks","issue_events_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/events","assignees_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/tags","blobs_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/languages","stargazers_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/stargazers","contributors_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/contributors","subscribers_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/subscribers","subscription_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/subscription","commits_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/merges","archive_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/downloads","issues_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/webankopen/weidentity-java-sdk/deployments","created_at":"2018-10-30T15:41:53Z","updated_at":"2018-12-02T11:53:10Z","pushed_at":"2018-12-10T12:53:21Z","git_url":"git://github.com/webankopen/weidentity-java-sdk.git","ssh_url":"git@github.com:webankopen/weidentity-java-sdk.git","clone_url":"https://github.com/webankopen/weidentity-java-sdk.git","svn_url":"https://github.com/webankopen/weidentity-java-sdk","homepage":null,"size":1405,"stargazers_count":9,"watchers_count":9,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":6,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14"},"html":{"href":"https://github.com/webankopen/weidentity-java-sdk/pull/14"},"issue":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues/14"},"comments":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/webankopen/weidentity-java-sdk/statuses/c4c82a9f24912898f043869dc9a5604cfab5d36e"}},"author_association":"NONE"}}
{"actor":{"display_login":"codacy-bot"}}