{"action":"created","comment":{"url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments/55422063","id":55422063,"diff_hunk":"@@ -33,5 +35,24 @@ public static Gson getTeammatesGson() {\n                 .setPrettyPrinting()\n                 .create();\n     }\n-\n+    \n+    /**\n+     * @param participants\n+     *            a list of 'FeedbackParticipantType' objects\n+     * @param delimiter\n+     *            a delimiter to separate each participant (e.g. a comma sign \",\")\n+     * @return a string representing all participants separated by 'delimiter'\n+     */\n+    public static String joinParticipantTypes(List<FeedbackParticipantType> participants, String delimiter) {","path":"src/main/java/teammates/common/util/Utils.java","position":24,"original_position":24,"commit_id":"9d0ce2af33fde3f48a650e2b5445ebcfbbd79f1f","original_commit_id":"9d0ce2af33fde3f48a650e2b5445ebcfbbd79f1f","user":{"login":"JosephineKwa","id":9999077,"avatar_url":"https://avatars.githubusercontent.com/u/9999077?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephineKwa","html_url":"https://github.com/JosephineKwa","followers_url":"https://api.github.com/users/JosephineKwa/followers","following_url":"https://api.github.com/users/JosephineKwa/following{/other_user}","gists_url":"https://api.github.com/users/JosephineKwa/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephineKwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephineKwa/subscriptions","organizations_url":"https://api.github.com/users/JosephineKwa/orgs","repos_url":"https://api.github.com/users/JosephineKwa/repos","events_url":"https://api.github.com/users/JosephineKwa/events{/privacy}","received_events_url":"https://api.github.com/users/JosephineKwa/received_events","type":"User","site_admin":false},"body":"Perhaps you could check that `participants` is not empty and only perform the for loop and substring when it is not empty. That way we can have a single return `result` statement.","created_at":"2016-03-08T20:28:14Z","updated_at":"2016-03-08T20:28:14Z","html_url":"https://github.com/TEAMMATES/teammates/pull/4905#discussion_r55422063","pull_request_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905","_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments/55422063"},"html":{"href":"https://github.com/TEAMMATES/teammates/pull/4905#discussion_r55422063"},"pull_request":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905"}}},"pull_request":{"url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905","id":61821765,"html_url":"https://github.com/TEAMMATES/teammates/pull/4905","diff_url":"https://github.com/TEAMMATES/teammates/pull/4905.diff","patch_url":"https://github.com/TEAMMATES/teammates/pull/4905.patch","issue_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/4905","number":4905,"state":"open","locked":false,"title":"The method joinParticipantTypes belongs to a util class #3994","user":{"login":"chen-zhuo","id":10667091,"avatar_url":"https://avatars.githubusercontent.com/u/10667091?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-zhuo","html_url":"https://github.com/chen-zhuo","followers_url":"https://api.github.com/users/chen-zhuo/followers","following_url":"https://api.github.com/users/chen-zhuo/following{/other_user}","gists_url":"https://api.github.com/users/chen-zhuo/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-zhuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-zhuo/subscriptions","organizations_url":"https://api.github.com/users/chen-zhuo/orgs","repos_url":"https://api.github.com/users/chen-zhuo/repos","events_url":"https://api.github.com/users/chen-zhuo/events{/privacy}","received_events_url":"https://api.github.com/users/chen-zhuo/received_events","type":"User","site_admin":false},"body":"Fixes #3994.\r\n\r\nRefactored `joinParticipantTypes()` from `InstructorFeedbackResponseCommentAddAction.java` to `Utils.java`.","created_at":"2016-03-05T19:42:30Z","updated_at":"2016-03-08T20:28:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"037155372b177fe3a5a0deb7e4b8dff102b800cc","assignee":{"login":"JosephineKwa","id":9999077,"avatar_url":"https://avatars.githubusercontent.com/u/9999077?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephineKwa","html_url":"https://github.com/JosephineKwa","followers_url":"https://api.github.com/users/JosephineKwa/followers","following_url":"https://api.github.com/users/JosephineKwa/following{/other_user}","gists_url":"https://api.github.com/users/JosephineKwa/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephineKwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephineKwa/subscriptions","organizations_url":"https://api.github.com/users/JosephineKwa/orgs","repos_url":"https://api.github.com/users/JosephineKwa/repos","events_url":"https://api.github.com/users/JosephineKwa/events{/privacy}","received_events_url":"https://api.github.com/users/JosephineKwa/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/TEAMMATES/teammates/milestones/199","html_url":"https://github.com/TEAMMATES/teammates/milestones/V5.72","labels_url":"https://api.github.com/repos/TEAMMATES/teammates/milestones/199/labels","id":1615949,"number":199,"title":"V5.72","description":"","creator":{"login":"thyageshm","id":5160137,"avatar_url":"https://avatars.githubusercontent.com/u/5160137?v=3","gravatar_id":"","url":"https://api.github.com/users/thyageshm","html_url":"https://github.com/thyageshm","followers_url":"https://api.github.com/users/thyageshm/followers","following_url":"https://api.github.com/users/thyageshm/following{/other_user}","gists_url":"https://api.github.com/users/thyageshm/gists{/gist_id}","starred_url":"https://api.github.com/users/thyageshm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thyageshm/subscriptions","organizations_url":"https://api.github.com/users/thyageshm/orgs","repos_url":"https://api.github.com/users/thyageshm/repos","events_url":"https://api.github.com/users/thyageshm/events{/privacy}","received_events_url":"https://api.github.com/users/thyageshm/received_events","type":"User","site_admin":false},"open_issues":61,"closed_issues":0,"state":"open","created_at":"2016-03-01T17:09:54Z","updated_at":"2016-03-08T20:21:07Z","due_on":"2016-03-14T16:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905/commits","review_comments_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905/comments","review_comment_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/4905/comments","statuses_url":"https://api.github.com/repos/TEAMMATES/teammates/statuses/9d0ce2af33fde3f48a650e2b5445ebcfbbd79f1f","head":{"label":"chen-zhuo:3994-refactor-method-joinParticipantTypes","ref":"3994-refactor-method-joinParticipantTypes","sha":"9d0ce2af33fde3f48a650e2b5445ebcfbbd79f1f","user":{"login":"chen-zhuo","id":10667091,"avatar_url":"https://avatars.githubusercontent.com/u/10667091?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-zhuo","html_url":"https://github.com/chen-zhuo","followers_url":"https://api.github.com/users/chen-zhuo/followers","following_url":"https://api.github.com/users/chen-zhuo/following{/other_user}","gists_url":"https://api.github.com/users/chen-zhuo/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-zhuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-zhuo/subscriptions","organizations_url":"https://api.github.com/users/chen-zhuo/orgs","repos_url":"https://api.github.com/users/chen-zhuo/repos","events_url":"https://api.github.com/users/chen-zhuo/events{/privacy}","received_events_url":"https://api.github.com/users/chen-zhuo/received_events","type":"User","site_admin":false},"repo":{"id":53210728,"name":"teammates","full_name":"chen-zhuo/teammates","owner":{"login":"chen-zhuo","id":10667091,"avatar_url":"https://avatars.githubusercontent.com/u/10667091?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-zhuo","html_url":"https://github.com/chen-zhuo","followers_url":"https://api.github.com/users/chen-zhuo/followers","following_url":"https://api.github.com/users/chen-zhuo/following{/other_user}","gists_url":"https://api.github.com/users/chen-zhuo/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-zhuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-zhuo/subscriptions","organizations_url":"https://api.github.com/users/chen-zhuo/orgs","repos_url":"https://api.github.com/users/chen-zhuo/repos","events_url":"https://api.github.com/users/chen-zhuo/events{/privacy}","received_events_url":"https://api.github.com/users/chen-zhuo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chen-zhuo/teammates","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":true,"url":"https://api.github.com/repos/chen-zhuo/teammates","forks_url":"https://api.github.com/repos/chen-zhuo/teammates/forks","keys_url":"https://api.github.com/repos/chen-zhuo/teammates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chen-zhuo/teammates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chen-zhuo/teammates/teams","hooks_url":"https://api.github.com/repos/chen-zhuo/teammates/hooks","issue_events_url":"https://api.github.com/repos/chen-zhuo/teammates/issues/events{/number}","events_url":"https://api.github.com/repos/chen-zhuo/teammates/events","assignees_url":"https://api.github.com/repos/chen-zhuo/teammates/assignees{/user}","branches_url":"https://api.github.com/repos/chen-zhuo/teammates/branches{/branch}","tags_url":"https://api.github.com/repos/chen-zhuo/teammates/tags","blobs_url":"https://api.github.com/repos/chen-zhuo/teammates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chen-zhuo/teammates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chen-zhuo/teammates/git/refs{/sha}","trees_url":"https://api.github.com/repos/chen-zhuo/teammates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chen-zhuo/teammates/statuses/{sha}","languages_url":"https://api.github.com/repos/chen-zhuo/teammates/languages","stargazers_url":"https://api.github.com/repos/chen-zhuo/teammates/stargazers","contributors_url":"https://api.github.com/repos/chen-zhuo/teammates/contributors","subscribers_url":"https://api.github.com/repos/chen-zhuo/teammates/subscribers","subscription_url":"https://api.github.com/repos/chen-zhuo/teammates/subscription","commits_url":"https://api.github.com/repos/chen-zhuo/teammates/commits{/sha}","git_commits_url":"https://api.github.com/repos/chen-zhuo/teammates/git/commits{/sha}","comments_url":"https://api.github.com/repos/chen-zhuo/teammates/comments{/number}","issue_comment_url":"https://api.github.com/repos/chen-zhuo/teammates/issues/comments{/number}","contents_url":"https://api.github.com/repos/chen-zhuo/teammates/contents/{+path}","compare_url":"https://api.github.com/repos/chen-zhuo/teammates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chen-zhuo/teammates/merges","archive_url":"https://api.github.com/repos/chen-zhuo/teammates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chen-zhuo/teammates/downloads","issues_url":"https://api.github.com/repos/chen-zhuo/teammates/issues{/number}","pulls_url":"https://api.github.com/repos/chen-zhuo/teammates/pulls{/number}","milestones_url":"https://api.github.com/repos/chen-zhuo/teammates/milestones{/number}","notifications_url":"https://api.github.com/repos/chen-zhuo/teammates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chen-zhuo/teammates/labels{/name}","releases_url":"https://api.github.com/repos/chen-zhuo/teammates/releases{/id}","deployments_url":"https://api.github.com/repos/chen-zhuo/teammates/deployments","created_at":"2016-03-05T16:23:44Z","updated_at":"2016-03-05T16:23:51Z","pushed_at":"2016-03-08T15:45:07Z","git_url":"git://github.com/chen-zhuo/teammates.git","ssh_url":"git@github.com:chen-zhuo/teammates.git","clone_url":"https://github.com/chen-zhuo/teammates.git","svn_url":"https://github.com/chen-zhuo/teammates","homepage":"http://teammatesv4.appspot.com/","size":141425,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"TEAMMATES:master","ref":"master","sha":"0479e4a107d2d9a7c033771877df2fc8683eef72","user":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"repo":{"id":19369035,"name":"teammates","full_name":"TEAMMATES/teammates","owner":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TEAMMATES/teammates","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":false,"url":"https://api.github.com/repos/TEAMMATES/teammates","forks_url":"https://api.github.com/repos/TEAMMATES/teammates/forks","keys_url":"https://api.github.com/repos/TEAMMATES/teammates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TEAMMATES/teammates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TEAMMATES/teammates/teams","hooks_url":"https://api.github.com/repos/TEAMMATES/teammates/hooks","issue_events_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/events{/number}","events_url":"https://api.github.com/repos/TEAMMATES/teammates/events","assignees_url":"https://api.github.com/repos/TEAMMATES/teammates/assignees{/user}","branches_url":"https://api.github.com/repos/TEAMMATES/teammates/branches{/branch}","tags_url":"https://api.github.com/repos/TEAMMATES/teammates/tags","blobs_url":"https://api.github.com/repos/TEAMMATES/teammates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TEAMMATES/teammates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TEAMMATES/teammates/git/refs{/sha}","trees_url":"https://api.github.com/repos/TEAMMATES/teammates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TEAMMATES/teammates/statuses/{sha}","languages_url":"https://api.github.com/repos/TEAMMATES/teammates/languages","stargazers_url":"https://api.github.com/repos/TEAMMATES/teammates/stargazers","contributors_url":"https://api.github.com/repos/TEAMMATES/teammates/contributors","subscribers_url":"https://api.github.com/repos/TEAMMATES/teammates/subscribers","subscription_url":"https://api.github.com/repos/TEAMMATES/teammates/subscription","commits_url":"https://api.github.com/repos/TEAMMATES/teammates/commits{/sha}","git_commits_url":"https://api.github.com/repos/TEAMMATES/teammates/git/commits{/sha}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/comments{/number}","issue_comment_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/comments{/number}","contents_url":"https://api.github.com/repos/TEAMMATES/teammates/contents/{+path}","compare_url":"https://api.github.com/repos/TEAMMATES/teammates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TEAMMATES/teammates/merges","archive_url":"https://api.github.com/repos/TEAMMATES/teammates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TEAMMATES/teammates/downloads","issues_url":"https://api.github.com/repos/TEAMMATES/teammates/issues{/number}","pulls_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls{/number}","milestones_url":"https://api.github.com/repos/TEAMMATES/teammates/milestones{/number}","notifications_url":"https://api.github.com/repos/TEAMMATES/teammates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TEAMMATES/teammates/labels{/name}","releases_url":"https://api.github.com/repos/TEAMMATES/teammates/releases{/id}","deployments_url":"https://api.github.com/repos/TEAMMATES/teammates/deployments","created_at":"2014-05-02T07:43:00Z","updated_at":"2016-03-07T09:21:22Z","pushed_at":"2016-03-08T20:20:35Z","git_url":"git://github.com/TEAMMATES/teammates.git","ssh_url":"git@github.com:TEAMMATES/teammates.git","clone_url":"https://github.com/TEAMMATES/teammates.git","svn_url":"https://github.com/TEAMMATES/teammates","homepage":"http://teammatesv4.appspot.com/","size":145082,"stargazers_count":69,"watchers_count":69,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":190,"mirror_url":null,"open_issues_count":497,"forks":190,"open_issues":497,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905"},"html":{"href":"https://github.com/TEAMMATES/teammates/pull/4905"},"issue":{"href":"https://api.github.com/repos/TEAMMATES/teammates/issues/4905"},"comments":{"href":"https://api.github.com/repos/TEAMMATES/teammates/issues/4905/comments"},"review_comments":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905/comments"},"review_comment":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/4905/commits"},"statuses":{"href":"https://api.github.com/repos/TEAMMATES/teammates/statuses/9d0ce2af33fde3f48a650e2b5445ebcfbbd79f1f"}}}}