{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/40149941","id":40149941,"diff_hunk":"@@ -0,0 +1,121 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.flink.types;\n+\n+import static org.junit.Assert.*;\n+\n+import org.junit.Test;\n+\n+public class CopyableValueTest {\n+\n+\t@Test\n+\tpublic void testCopy() {\n+\t\tCopyableValue<?>[] value_types = new CopyableValue[] {\n+\t\t\tnew BooleanValue(true),\n+\t\t\tnew ByteValue((byte) 42),\n+\t\t\tnew CharValue('q'),\n+\t\t\tnew DoubleValue(3.1415926535897932),\n+\t\t\tnew FloatValue((float) 3.14159265),\n+\t\t\tnew IntValue(42),\n+\t\t\tnew LongValue(42l),\n+\t\t\tnew NullValue(),\n+\t\t\tnew ShortValue((short) 42),\n+\t\t\tnew StringValue(\"QED\")\n+\t\t};\n+\n+\t\ttry {\n+\t\t\tfor (CopyableValue<?> type : value_types) {\n+\t\t\t\tassertEquals(type, type.copy());\n+\t\t\t}\n+\t\t}\n+\t\tcatch (Exception e) {\n+\t\t\te.printStackTrace();\n+\t\t\tfail(e.getMessage());\n+\t\t}","path":"flink-core/src/test/java/org/apache/flink/types/CopyableValueTest.java","position":50,"original_position":50,"commit_id":"114c4960518f58e724bad13daae76c3f513d27b0","original_commit_id":"114c4960518f58e724bad13daae76c3f513d27b0","user":{"login":"uce","id":1756620,"avatar_url":"https://avatars.githubusercontent.com/u/1756620?v=3","gravatar_id":"","url":"https://api.github.com/users/uce","html_url":"https://github.com/uce","followers_url":"https://api.github.com/users/uce/followers","following_url":"https://api.github.com/users/uce/following{/other_user}","gists_url":"https://api.github.com/users/uce/gists{/gist_id}","starred_url":"https://api.github.com/users/uce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uce/subscriptions","organizations_url":"https://api.github.com/users/uce/orgs","repos_url":"https://api.github.com/users/uce/repos","events_url":"https://api.github.com/users/uce/events{/privacy}","received_events_url":"https://api.github.com/users/uce/received_events","type":"User","site_admin":false},"body":"I know that we have this in other tests as well, but I think it is not needed, because the test will fail with the stack trace anyways.","created_at":"2015-09-22T21:58:00Z","updated_at":"2015-09-22T21:58:00Z","html_url":"https://github.com/apache/flink/pull/1169#discussion_r40149941","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/1169","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/40149941"},"html":{"href":"https://github.com/apache/flink/pull/1169#discussion_r40149941"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/1169"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/1169","id":45683986,"html_url":"https://github.com/apache/flink/pull/1169","diff_url":"https://github.com/apache/flink/pull/1169.diff","patch_url":"https://github.com/apache/flink/pull/1169.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/1169","number":1169,"state":"open","locked":false,"title":"[FLINK-2723] CopyableValue method to copy into new instance","user":{"login":"greghogan","id":569655,"avatar_url":"https://avatars.githubusercontent.com/u/569655?v=3","gravatar_id":"","url":"https://api.github.com/users/greghogan","html_url":"https://github.com/greghogan","followers_url":"https://api.github.com/users/greghogan/followers","following_url":"https://api.github.com/users/greghogan/following{/other_user}","gists_url":"https://api.github.com/users/greghogan/gists{/gist_id}","starred_url":"https://api.github.com/users/greghogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghogan/subscriptions","organizations_url":"https://api.github.com/users/greghogan/orgs","repos_url":"https://api.github.com/users/greghogan/repos","events_url":"https://api.github.com/users/greghogan/events{/privacy}","received_events_url":"https://api.github.com/users/greghogan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-22T16:13:38Z","updated_at":"2015-09-22T21:58:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"569dd17683793fe7478deabb6d6355a4cadda6ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/1169/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/1169/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/1169/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/114c4960518f58e724bad13daae76c3f513d27b0","head":{"label":"greghogan:2723_copyablevalue_method_to_copy_into_new_instance","ref":"2723_copyablevalue_method_to_copy_into_new_instance","sha":"114c4960518f58e724bad13daae76c3f513d27b0","user":{"login":"greghogan","id":569655,"avatar_url":"https://avatars.githubusercontent.com/u/569655?v=3","gravatar_id":"","url":"https://api.github.com/users/greghogan","html_url":"https://github.com/greghogan","followers_url":"https://api.github.com/users/greghogan/followers","following_url":"https://api.github.com/users/greghogan/following{/other_user}","gists_url":"https://api.github.com/users/greghogan/gists{/gist_id}","starred_url":"https://api.github.com/users/greghogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghogan/subscriptions","organizations_url":"https://api.github.com/users/greghogan/orgs","repos_url":"https://api.github.com/users/greghogan/repos","events_url":"https://api.github.com/users/greghogan/events{/privacy}","received_events_url":"https://api.github.com/users/greghogan/received_events","type":"User","site_admin":false},"repo":{"id":39191605,"name":"flink","full_name":"greghogan/flink","owner":{"login":"greghogan","id":569655,"avatar_url":"https://avatars.githubusercontent.com/u/569655?v=3","gravatar_id":"","url":"https://api.github.com/users/greghogan","html_url":"https://github.com/greghogan","followers_url":"https://api.github.com/users/greghogan/followers","following_url":"https://api.github.com/users/greghogan/following{/other_user}","gists_url":"https://api.github.com/users/greghogan/gists{/gist_id}","starred_url":"https://api.github.com/users/greghogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greghogan/subscriptions","organizations_url":"https://api.github.com/users/greghogan/orgs","repos_url":"https://api.github.com/users/greghogan/repos","events_url":"https://api.github.com/users/greghogan/events{/privacy}","received_events_url":"https://api.github.com/users/greghogan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/greghogan/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/greghogan/flink","forks_url":"https://api.github.com/repos/greghogan/flink/forks","keys_url":"https://api.github.com/repos/greghogan/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greghogan/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greghogan/flink/teams","hooks_url":"https://api.github.com/repos/greghogan/flink/hooks","issue_events_url":"https://api.github.com/repos/greghogan/flink/issues/events{/number}","events_url":"https://api.github.com/repos/greghogan/flink/events","assignees_url":"https://api.github.com/repos/greghogan/flink/assignees{/user}","branches_url":"https://api.github.com/repos/greghogan/flink/branches{/branch}","tags_url":"https://api.github.com/repos/greghogan/flink/tags","blobs_url":"https://api.github.com/repos/greghogan/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greghogan/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greghogan/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/greghogan/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greghogan/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/greghogan/flink/languages","stargazers_url":"https://api.github.com/repos/greghogan/flink/stargazers","contributors_url":"https://api.github.com/repos/greghogan/flink/contributors","subscribers_url":"https://api.github.com/repos/greghogan/flink/subscribers","subscription_url":"https://api.github.com/repos/greghogan/flink/subscription","commits_url":"https://api.github.com/repos/greghogan/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/greghogan/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/greghogan/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/greghogan/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/greghogan/flink/contents/{+path}","compare_url":"https://api.github.com/repos/greghogan/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greghogan/flink/merges","archive_url":"https://api.github.com/repos/greghogan/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greghogan/flink/downloads","issues_url":"https://api.github.com/repos/greghogan/flink/issues{/number}","pulls_url":"https://api.github.com/repos/greghogan/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/greghogan/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/greghogan/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greghogan/flink/labels{/name}","releases_url":"https://api.github.com/repos/greghogan/flink/releases{/id}","created_at":"2015-07-16T10:45:25Z","updated_at":"2015-07-16T10:45:36Z","pushed_at":"2015-09-22T20:20:05Z","git_url":"git://github.com/greghogan/flink.git","ssh_url":"git@github.com:greghogan/flink.git","clone_url":"https://github.com/greghogan/flink.git","svn_url":"https://github.com/greghogan/flink","homepage":null,"size":62061,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"apache:master","ref":"master","sha":"a3df109cf7d959dafea8893dcbf3bec8075f3489","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"name":"flink","full_name":"apache/flink","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","created_at":"2014-06-07T07:00:10Z","updated_at":"2015-09-22T21:37:38Z","pushed_at":"2015-09-22T21:21:48Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":2524245,"stargazers_count":631,"watchers_count":631,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":423,"mirror_url":"git://git.apache.org/incubator-flink.git","open_issues_count":78,"forks":423,"open_issues":78,"watchers":631,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/1169"},"html":{"href":"https://github.com/apache/flink/pull/1169"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/1169"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/1169/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/1169/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/1169/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/114c4960518f58e724bad13daae76c3f513d27b0"}}}}