{"action":"created","comment":{"url":"https://api.github.com/repos/testmycode/tmc-core/pulls/comments/38821701","id":38821701,"diff_hunk":"@@ -33,21 +33,21 @@ private void fillCourseStubs() {\n         }\n     }\n \n-    public String getReturnValue() {\n+    public Path getReturnValue() {\n         return returnValue;\n     }\n \n-    public void setReturnValue(String returnValue) {\n+    public void setReturnValue(Path returnValue) {\n         this.returnValue = returnValue;\n     }\n \n     @Override\n     public Optional<Path> getRootDirectory(Path zipRoot) {\n-        return Optional.of(Paths.get(returnValue));\n+        return Optional.of(returnValue);\n     }\n \n-    public Optional<Course> getCurrentCourse(String path) {\n-        String[] folders = path.split(\"\\\\\" + File.separator);\n+    public Optional<Course> getCurrentCourse(Path path) {\n+        String[] folders = path.toString().split(\"\\\\\" + File.separator);","path":"src/test/java/fi/helsinki/cs/tmc/core/testhelpers/ProjectRootFinderStub.java","position":38,"original_position":38,"commit_id":"724d0e972bab6036b26dcadadaf6092843a2a3fd","original_commit_id":"724d0e972bab6036b26dcadadaf6092843a2a3fd","user":{"login":"ljleppan","id":3263139,"avatar_url":"https://avatars.githubusercontent.com/u/3263139?v=3","gravatar_id":"","url":"https://api.github.com/users/ljleppan","html_url":"https://github.com/ljleppan","followers_url":"https://api.github.com/users/ljleppan/followers","following_url":"https://api.github.com/users/ljleppan/following{/other_user}","gists_url":"https://api.github.com/users/ljleppan/gists{/gist_id}","starred_url":"https://api.github.com/users/ljleppan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljleppan/subscriptions","organizations_url":"https://api.github.com/users/ljleppan/orgs","repos_url":"https://api.github.com/users/ljleppan/repos","events_url":"https://api.github.com/users/ljleppan/events{/privacy}","received_events_url":"https://api.github.com/users/ljleppan/received_events","type":"User","site_admin":false},"body":"Can we use [`java.nio.Path#iterator()`](http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#iterator()) here?","created_at":"2015-09-06T14:00:57Z","updated_at":"2015-09-06T14:00:57Z","html_url":"https://github.com/testmycode/tmc-core/pull/81#discussion_r38821701","pull_request_url":"https://api.github.com/repos/testmycode/tmc-core/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-core/pulls/comments/38821701"},"html":{"href":"https://github.com/testmycode/tmc-core/pull/81#discussion_r38821701"},"pull_request":{"href":"https://api.github.com/repos/testmycode/tmc-core/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/testmycode/tmc-core/pulls/81","id":44300551,"html_url":"https://github.com/testmycode/tmc-core/pull/81","diff_url":"https://github.com/testmycode/tmc-core/pull/81.diff","patch_url":"https://github.com/testmycode/tmc-core/pull/81.patch","issue_url":"https://api.github.com/repos/testmycode/tmc-core/issues/81","number":81,"state":"open","locked":false,"title":"task 70: String path -> Path path","user":{"login":"tieSari","id":10246159,"avatar_url":"https://avatars.githubusercontent.com/u/10246159?v=3","gravatar_id":"","url":"https://api.github.com/users/tieSari","html_url":"https://github.com/tieSari","followers_url":"https://api.github.com/users/tieSari/followers","following_url":"https://api.github.com/users/tieSari/following{/other_user}","gists_url":"https://api.github.com/users/tieSari/gists{/gist_id}","starred_url":"https://api.github.com/users/tieSari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieSari/subscriptions","organizations_url":"https://api.github.com/users/tieSari/orgs","repos_url":"https://api.github.com/users/tieSari/repos","events_url":"https://api.github.com/users/tieSari/events{/privacy}","received_events_url":"https://api.github.com/users/tieSari/received_events","type":"User","site_admin":false},"body":"Nyt olisi kutakuinkin string polut muutettu nio.Path-muotoon. Joihinkin testeihin jätin stringiksi, jos niissä haluttiin polku String[] muotoon polun osien läpikäyntiä varten.","created_at":"2015-09-06T10:56:27Z","updated_at":"2015-09-06T14:00:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/testmycode/tmc-core/pulls/81/commits","review_comments_url":"https://api.github.com/repos/testmycode/tmc-core/pulls/81/comments","review_comment_url":"https://api.github.com/repos/testmycode/tmc-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/testmycode/tmc-core/issues/81/comments","statuses_url":"https://api.github.com/repos/testmycode/tmc-core/statuses/724d0e972bab6036b26dcadadaf6092843a2a3fd","head":{"label":"tieSari:master","ref":"master","sha":"724d0e972bab6036b26dcadadaf6092843a2a3fd","user":{"login":"tieSari","id":10246159,"avatar_url":"https://avatars.githubusercontent.com/u/10246159?v=3","gravatar_id":"","url":"https://api.github.com/users/tieSari","html_url":"https://github.com/tieSari","followers_url":"https://api.github.com/users/tieSari/followers","following_url":"https://api.github.com/users/tieSari/following{/other_user}","gists_url":"https://api.github.com/users/tieSari/gists{/gist_id}","starred_url":"https://api.github.com/users/tieSari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieSari/subscriptions","organizations_url":"https://api.github.com/users/tieSari/orgs","repos_url":"https://api.github.com/users/tieSari/repos","events_url":"https://api.github.com/users/tieSari/events{/privacy}","received_events_url":"https://api.github.com/users/tieSari/received_events","type":"User","site_admin":false},"repo":{"id":41803625,"name":"tmc-core","full_name":"tieSari/tmc-core","owner":{"login":"tieSari","id":10246159,"avatar_url":"https://avatars.githubusercontent.com/u/10246159?v=3","gravatar_id":"","url":"https://api.github.com/users/tieSari","html_url":"https://github.com/tieSari","followers_url":"https://api.github.com/users/tieSari/followers","following_url":"https://api.github.com/users/tieSari/following{/other_user}","gists_url":"https://api.github.com/users/tieSari/gists{/gist_id}","starred_url":"https://api.github.com/users/tieSari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tieSari/subscriptions","organizations_url":"https://api.github.com/users/tieSari/orgs","repos_url":"https://api.github.com/users/tieSari/repos","events_url":"https://api.github.com/users/tieSari/events{/privacy}","received_events_url":"https://api.github.com/users/tieSari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tieSari/tmc-core","description":"Tmc-core","fork":true,"url":"https://api.github.com/repos/tieSari/tmc-core","forks_url":"https://api.github.com/repos/tieSari/tmc-core/forks","keys_url":"https://api.github.com/repos/tieSari/tmc-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tieSari/tmc-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tieSari/tmc-core/teams","hooks_url":"https://api.github.com/repos/tieSari/tmc-core/hooks","issue_events_url":"https://api.github.com/repos/tieSari/tmc-core/issues/events{/number}","events_url":"https://api.github.com/repos/tieSari/tmc-core/events","assignees_url":"https://api.github.com/repos/tieSari/tmc-core/assignees{/user}","branches_url":"https://api.github.com/repos/tieSari/tmc-core/branches{/branch}","tags_url":"https://api.github.com/repos/tieSari/tmc-core/tags","blobs_url":"https://api.github.com/repos/tieSari/tmc-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tieSari/tmc-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tieSari/tmc-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/tieSari/tmc-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tieSari/tmc-core/statuses/{sha}","languages_url":"https://api.github.com/repos/tieSari/tmc-core/languages","stargazers_url":"https://api.github.com/repos/tieSari/tmc-core/stargazers","contributors_url":"https://api.github.com/repos/tieSari/tmc-core/contributors","subscribers_url":"https://api.github.com/repos/tieSari/tmc-core/subscribers","subscription_url":"https://api.github.com/repos/tieSari/tmc-core/subscription","commits_url":"https://api.github.com/repos/tieSari/tmc-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/tieSari/tmc-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/tieSari/tmc-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/tieSari/tmc-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/tieSari/tmc-core/contents/{+path}","compare_url":"https://api.github.com/repos/tieSari/tmc-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tieSari/tmc-core/merges","archive_url":"https://api.github.com/repos/tieSari/tmc-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tieSari/tmc-core/downloads","issues_url":"https://api.github.com/repos/tieSari/tmc-core/issues{/number}","pulls_url":"https://api.github.com/repos/tieSari/tmc-core/pulls{/number}","milestones_url":"https://api.github.com/repos/tieSari/tmc-core/milestones{/number}","notifications_url":"https://api.github.com/repos/tieSari/tmc-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tieSari/tmc-core/labels{/name}","releases_url":"https://api.github.com/repos/tieSari/tmc-core/releases{/id}","created_at":"2015-09-02T13:48:28Z","updated_at":"2015-09-02T13:48:29Z","pushed_at":"2015-09-06T10:52:22Z","git_url":"git://github.com/tieSari/tmc-core.git","ssh_url":"git@github.com:tieSari/tmc-core.git","clone_url":"https://github.com/tieSari/tmc-core.git","svn_url":"https://github.com/tieSari/tmc-core","homepage":null,"size":26872,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"testmycode:master","ref":"master","sha":"fd05857d9c251173af66b2677cac8d8ad105779b","user":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"repo":{"id":38294073,"name":"tmc-core","full_name":"testmycode/tmc-core","owner":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testmycode/tmc-core","description":"Tmc-core","fork":false,"url":"https://api.github.com/repos/testmycode/tmc-core","forks_url":"https://api.github.com/repos/testmycode/tmc-core/forks","keys_url":"https://api.github.com/repos/testmycode/tmc-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testmycode/tmc-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testmycode/tmc-core/teams","hooks_url":"https://api.github.com/repos/testmycode/tmc-core/hooks","issue_events_url":"https://api.github.com/repos/testmycode/tmc-core/issues/events{/number}","events_url":"https://api.github.com/repos/testmycode/tmc-core/events","assignees_url":"https://api.github.com/repos/testmycode/tmc-core/assignees{/user}","branches_url":"https://api.github.com/repos/testmycode/tmc-core/branches{/branch}","tags_url":"https://api.github.com/repos/testmycode/tmc-core/tags","blobs_url":"https://api.github.com/repos/testmycode/tmc-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testmycode/tmc-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testmycode/tmc-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/testmycode/tmc-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testmycode/tmc-core/statuses/{sha}","languages_url":"https://api.github.com/repos/testmycode/tmc-core/languages","stargazers_url":"https://api.github.com/repos/testmycode/tmc-core/stargazers","contributors_url":"https://api.github.com/repos/testmycode/tmc-core/contributors","subscribers_url":"https://api.github.com/repos/testmycode/tmc-core/subscribers","subscription_url":"https://api.github.com/repos/testmycode/tmc-core/subscription","commits_url":"https://api.github.com/repos/testmycode/tmc-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/testmycode/tmc-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/testmycode/tmc-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/testmycode/tmc-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/testmycode/tmc-core/contents/{+path}","compare_url":"https://api.github.com/repos/testmycode/tmc-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testmycode/tmc-core/merges","archive_url":"https://api.github.com/repos/testmycode/tmc-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testmycode/tmc-core/downloads","issues_url":"https://api.github.com/repos/testmycode/tmc-core/issues{/number}","pulls_url":"https://api.github.com/repos/testmycode/tmc-core/pulls{/number}","milestones_url":"https://api.github.com/repos/testmycode/tmc-core/milestones{/number}","notifications_url":"https://api.github.com/repos/testmycode/tmc-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testmycode/tmc-core/labels{/name}","releases_url":"https://api.github.com/repos/testmycode/tmc-core/releases{/id}","created_at":"2015-06-30T07:21:26Z","updated_at":"2015-08-31T11:14:06Z","pushed_at":"2015-09-06T10:56:27Z","git_url":"git://github.com/testmycode/tmc-core.git","ssh_url":"git@github.com:testmycode/tmc-core.git","clone_url":"https://github.com/testmycode/tmc-core.git","svn_url":"https://github.com/testmycode/tmc-core","homepage":null,"size":28426,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":22,"forks":10,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-core/pulls/81"},"html":{"href":"https://github.com/testmycode/tmc-core/pull/81"},"issue":{"href":"https://api.github.com/repos/testmycode/tmc-core/issues/81"},"comments":{"href":"https://api.github.com/repos/testmycode/tmc-core/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/testmycode/tmc-core/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/testmycode/tmc-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/testmycode/tmc-core/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/testmycode/tmc-core/statuses/724d0e972bab6036b26dcadadaf6092843a2a3fd"}}}}