{"action":"created","comment":{"url":"https://api.github.com/repos/outworkers/phantom/pulls/comments/73793362","id":73793362,"diff_hunk":"@@ -0,0 +1,67 @@\n+/*\n+ * Copyright 2013-2015 Websudos, Limited.\n+ *\n+ * All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ *\n+ * - Redistributions of source code must retain the above copyright notice,\n+ * this list of conditions and the following disclaimer.\n+ *\n+ * - Redistributions in binary form must reproduce the above copyright\n+ * notice, this list of conditions and the following disclaimer in the\n+ * documentation and/or other materials provided with the distribution.\n+ *\n+ * - Explicit consent must be obtained from the copyright owner, Outworkers Limited before any redistribution is made.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+package com.websudos.phantom\n+\n+import net.liftweb.json.JsonAST.{JInt, JString, JValue}\n+import net.liftweb.json.{Formats, MappingException, Serializer, TypeInfo}\n+\n+import scala.util.control.NonFatal\n+\n+trait CassandraLiftJsonParsers {\n+\n+  class BigDecimalJsonFormat extends Serializer[BigDecimal] {\n+    private[this] val Class = classOf[Int]\n+\n+    def deserialize(implicit format: Formats): PartialFunction[(TypeInfo, JValue), BigDecimal] = {\n+      case (TypeInfo(Class, _), json) => {\n+\n+        Console.println(json)\n+\n+        json match {\n+          case JInt(value) => try {","path":"phantom-dsl/src/test/scala/com/websudos/phantom/CassandraLiftJsonParsers.scala","position":48,"original_position":48,"commit_id":"69024160d0b0e1309662dcb609e0752a1b92d97a","original_commit_id":"69024160d0b0e1309662dcb609e0752a1b92d97a","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","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://www.codacy.com/assets/images/favicon.png) Issue found: [Consider using util.Try instead of a try-catch block](https://www.codacy.com/app/flavian/phantom/file/3182002048/issues/source?bid=2847375&fileBranchId=3507496#l48)","created_at":"2016-08-06T23:11:02Z","updated_at":"2016-08-06T23:11:02Z","html_url":"https://github.com/outworkers/phantom/pull/532#discussion_r73793362","pull_request_url":"https://api.github.com/repos/outworkers/phantom/pulls/532","_links":{"self":{"href":"https://api.github.com/repos/outworkers/phantom/pulls/comments/73793362"},"html":{"href":"https://github.com/outworkers/phantom/pull/532#discussion_r73793362"},"pull_request":{"href":"https://api.github.com/repos/outworkers/phantom/pulls/532"}}},"pull_request":{"url":"https://api.github.com/repos/outworkers/phantom/pulls/532","id":80353290,"html_url":"https://github.com/outworkers/phantom/pull/532","diff_url":"https://github.com/outworkers/phantom/pull/532.diff","patch_url":"https://github.com/outworkers/phantom/pull/532.patch","issue_url":"https://api.github.com/repos/outworkers/phantom/issues/532","number":532,"state":"open","locked":false,"title":"Feature/select json","user":{"login":"alexflav23","id":1645142,"avatar_url":"https://avatars.githubusercontent.com/u/1645142?v=3","gravatar_id":"","url":"https://api.github.com/users/alexflav23","html_url":"https://github.com/alexflav23","followers_url":"https://api.github.com/users/alexflav23/followers","following_url":"https://api.github.com/users/alexflav23/following{/other_user}","gists_url":"https://api.github.com/users/alexflav23/gists{/gist_id}","starred_url":"https://api.github.com/users/alexflav23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexflav23/subscriptions","organizations_url":"https://api.github.com/users/alexflav23/orgs","repos_url":"https://api.github.com/users/alexflav23/repos","events_url":"https://api.github.com/users/alexflav23/events{/privacy}","received_events_url":"https://api.github.com/users/alexflav23/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-06T23:07:05Z","updated_at":"2016-08-06T23:11:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"422fae57df413a951e2d1582bb335e60e372d380","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/outworkers/phantom/pulls/532/commits","review_comments_url":"https://api.github.com/repos/outworkers/phantom/pulls/532/comments","review_comment_url":"https://api.github.com/repos/outworkers/phantom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/outworkers/phantom/issues/532/comments","statuses_url":"https://api.github.com/repos/outworkers/phantom/statuses/69024160d0b0e1309662dcb609e0752a1b92d97a","head":{"label":"outworkers:feature/select_json","ref":"feature/select_json","sha":"69024160d0b0e1309662dcb609e0752a1b92d97a","user":{"login":"outworkers","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/outworkers","html_url":"https://github.com/outworkers","followers_url":"https://api.github.com/users/outworkers/followers","following_url":"https://api.github.com/users/outworkers/following{/other_user}","gists_url":"https://api.github.com/users/outworkers/gists{/gist_id}","starred_url":"https://api.github.com/users/outworkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outworkers/subscriptions","organizations_url":"https://api.github.com/users/outworkers/orgs","repos_url":"https://api.github.com/users/outworkers/repos","events_url":"https://api.github.com/users/outworkers/events{/privacy}","received_events_url":"https://api.github.com/users/outworkers/received_events","type":"Organization","site_admin":false},"repo":{"id":14509195,"name":"phantom","full_name":"outworkers/phantom","owner":{"login":"outworkers","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/outworkers","html_url":"https://github.com/outworkers","followers_url":"https://api.github.com/users/outworkers/followers","following_url":"https://api.github.com/users/outworkers/following{/other_user}","gists_url":"https://api.github.com/users/outworkers/gists{/gist_id}","starred_url":"https://api.github.com/users/outworkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outworkers/subscriptions","organizations_url":"https://api.github.com/users/outworkers/orgs","repos_url":"https://api.github.com/users/outworkers/repos","events_url":"https://api.github.com/users/outworkers/events{/privacy}","received_events_url":"https://api.github.com/users/outworkers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/outworkers/phantom","description":"Reactive type-safe Scala driver for Cassandra/Datastax Enterprise","fork":false,"url":"https://api.github.com/repos/outworkers/phantom","forks_url":"https://api.github.com/repos/outworkers/phantom/forks","keys_url":"https://api.github.com/repos/outworkers/phantom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outworkers/phantom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outworkers/phantom/teams","hooks_url":"https://api.github.com/repos/outworkers/phantom/hooks","issue_events_url":"https://api.github.com/repos/outworkers/phantom/issues/events{/number}","events_url":"https://api.github.com/repos/outworkers/phantom/events","assignees_url":"https://api.github.com/repos/outworkers/phantom/assignees{/user}","branches_url":"https://api.github.com/repos/outworkers/phantom/branches{/branch}","tags_url":"https://api.github.com/repos/outworkers/phantom/tags","blobs_url":"https://api.github.com/repos/outworkers/phantom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outworkers/phantom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outworkers/phantom/git/refs{/sha}","trees_url":"https://api.github.com/repos/outworkers/phantom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outworkers/phantom/statuses/{sha}","languages_url":"https://api.github.com/repos/outworkers/phantom/languages","stargazers_url":"https://api.github.com/repos/outworkers/phantom/stargazers","contributors_url":"https://api.github.com/repos/outworkers/phantom/contributors","subscribers_url":"https://api.github.com/repos/outworkers/phantom/subscribers","subscription_url":"https://api.github.com/repos/outworkers/phantom/subscription","commits_url":"https://api.github.com/repos/outworkers/phantom/commits{/sha}","git_commits_url":"https://api.github.com/repos/outworkers/phantom/git/commits{/sha}","comments_url":"https://api.github.com/repos/outworkers/phantom/comments{/number}","issue_comment_url":"https://api.github.com/repos/outworkers/phantom/issues/comments{/number}","contents_url":"https://api.github.com/repos/outworkers/phantom/contents/{+path}","compare_url":"https://api.github.com/repos/outworkers/phantom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outworkers/phantom/merges","archive_url":"https://api.github.com/repos/outworkers/phantom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outworkers/phantom/downloads","issues_url":"https://api.github.com/repos/outworkers/phantom/issues{/number}","pulls_url":"https://api.github.com/repos/outworkers/phantom/pulls{/number}","milestones_url":"https://api.github.com/repos/outworkers/phantom/milestones{/number}","notifications_url":"https://api.github.com/repos/outworkers/phantom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outworkers/phantom/labels{/name}","releases_url":"https://api.github.com/repos/outworkers/phantom/releases{/id}","deployments_url":"https://api.github.com/repos/outworkers/phantom/deployments","created_at":"2013-11-19T00:08:32Z","updated_at":"2016-08-05T00:20:45Z","pushed_at":"2016-08-06T23:07:05Z","git_url":"git://github.com/outworkers/phantom.git","ssh_url":"git@github.com:outworkers/phantom.git","clone_url":"https://github.com/outworkers/phantom.git","svn_url":"https://github.com/outworkers/phantom","homepage":"http://outworkers.github.io/phantom/","size":6854,"stargazers_count":448,"watchers_count":448,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":109,"mirror_url":null,"open_issues_count":10,"forks":109,"open_issues":10,"watchers":448,"default_branch":"develop"}},"base":{"label":"outworkers:develop","ref":"develop","sha":"9a6c012fe9a9535fa26f15ebc3d9908138a4fed4","user":{"login":"outworkers","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/outworkers","html_url":"https://github.com/outworkers","followers_url":"https://api.github.com/users/outworkers/followers","following_url":"https://api.github.com/users/outworkers/following{/other_user}","gists_url":"https://api.github.com/users/outworkers/gists{/gist_id}","starred_url":"https://api.github.com/users/outworkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outworkers/subscriptions","organizations_url":"https://api.github.com/users/outworkers/orgs","repos_url":"https://api.github.com/users/outworkers/repos","events_url":"https://api.github.com/users/outworkers/events{/privacy}","received_events_url":"https://api.github.com/users/outworkers/received_events","type":"Organization","site_admin":false},"repo":{"id":14509195,"name":"phantom","full_name":"outworkers/phantom","owner":{"login":"outworkers","id":7896606,"avatar_url":"https://avatars.githubusercontent.com/u/7896606?v=3","gravatar_id":"","url":"https://api.github.com/users/outworkers","html_url":"https://github.com/outworkers","followers_url":"https://api.github.com/users/outworkers/followers","following_url":"https://api.github.com/users/outworkers/following{/other_user}","gists_url":"https://api.github.com/users/outworkers/gists{/gist_id}","starred_url":"https://api.github.com/users/outworkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outworkers/subscriptions","organizations_url":"https://api.github.com/users/outworkers/orgs","repos_url":"https://api.github.com/users/outworkers/repos","events_url":"https://api.github.com/users/outworkers/events{/privacy}","received_events_url":"https://api.github.com/users/outworkers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/outworkers/phantom","description":"Reactive type-safe Scala driver for Cassandra/Datastax Enterprise","fork":false,"url":"https://api.github.com/repos/outworkers/phantom","forks_url":"https://api.github.com/repos/outworkers/phantom/forks","keys_url":"https://api.github.com/repos/outworkers/phantom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outworkers/phantom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outworkers/phantom/teams","hooks_url":"https://api.github.com/repos/outworkers/phantom/hooks","issue_events_url":"https://api.github.com/repos/outworkers/phantom/issues/events{/number}","events_url":"https://api.github.com/repos/outworkers/phantom/events","assignees_url":"https://api.github.com/repos/outworkers/phantom/assignees{/user}","branches_url":"https://api.github.com/repos/outworkers/phantom/branches{/branch}","tags_url":"https://api.github.com/repos/outworkers/phantom/tags","blobs_url":"https://api.github.com/repos/outworkers/phantom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outworkers/phantom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outworkers/phantom/git/refs{/sha}","trees_url":"https://api.github.com/repos/outworkers/phantom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outworkers/phantom/statuses/{sha}","languages_url":"https://api.github.com/repos/outworkers/phantom/languages","stargazers_url":"https://api.github.com/repos/outworkers/phantom/stargazers","contributors_url":"https://api.github.com/repos/outworkers/phantom/contributors","subscribers_url":"https://api.github.com/repos/outworkers/phantom/subscribers","subscription_url":"https://api.github.com/repos/outworkers/phantom/subscription","commits_url":"https://api.github.com/repos/outworkers/phantom/commits{/sha}","git_commits_url":"https://api.github.com/repos/outworkers/phantom/git/commits{/sha}","comments_url":"https://api.github.com/repos/outworkers/phantom/comments{/number}","issue_comment_url":"https://api.github.com/repos/outworkers/phantom/issues/comments{/number}","contents_url":"https://api.github.com/repos/outworkers/phantom/contents/{+path}","compare_url":"https://api.github.com/repos/outworkers/phantom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outworkers/phantom/merges","archive_url":"https://api.github.com/repos/outworkers/phantom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outworkers/phantom/downloads","issues_url":"https://api.github.com/repos/outworkers/phantom/issues{/number}","pulls_url":"https://api.github.com/repos/outworkers/phantom/pulls{/number}","milestones_url":"https://api.github.com/repos/outworkers/phantom/milestones{/number}","notifications_url":"https://api.github.com/repos/outworkers/phantom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outworkers/phantom/labels{/name}","releases_url":"https://api.github.com/repos/outworkers/phantom/releases{/id}","deployments_url":"https://api.github.com/repos/outworkers/phantom/deployments","created_at":"2013-11-19T00:08:32Z","updated_at":"2016-08-05T00:20:45Z","pushed_at":"2016-08-06T23:07:05Z","git_url":"git://github.com/outworkers/phantom.git","ssh_url":"git@github.com:outworkers/phantom.git","clone_url":"https://github.com/outworkers/phantom.git","svn_url":"https://github.com/outworkers/phantom","homepage":"http://outworkers.github.io/phantom/","size":6854,"stargazers_count":448,"watchers_count":448,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":109,"mirror_url":null,"open_issues_count":10,"forks":109,"open_issues":10,"watchers":448,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/outworkers/phantom/pulls/532"},"html":{"href":"https://github.com/outworkers/phantom/pull/532"},"issue":{"href":"https://api.github.com/repos/outworkers/phantom/issues/532"},"comments":{"href":"https://api.github.com/repos/outworkers/phantom/issues/532/comments"},"review_comments":{"href":"https://api.github.com/repos/outworkers/phantom/pulls/532/comments"},"review_comment":{"href":"https://api.github.com/repos/outworkers/phantom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/outworkers/phantom/pulls/532/commits"},"statuses":{"href":"https://api.github.com/repos/outworkers/phantom/statuses/69024160d0b0e1309662dcb609e0752a1b92d97a"}}}}
{"actor":{"display_login":"codacy-bot"}}