{"action":"created","comment":{"url":"https://api.github.com/repos/scala-js/scala-js/pulls/comments/48711416","id":48711416,"diff_hunk":"@@ -0,0 +1,159 @@\n+package java.time\n+\n+import java.time.chrono.IsoChronology\n+\n+import scala.scalajs.js\n+\n+import java.time.temporal._\n+\n+/**\n+  * Created by alonsodomin on 22/12/2015.\n+  */\n+final class MonthDay private (month: Int, day: Int)\n+    extends TemporalAccessor with TemporalAdjuster with Comparable[MonthDay]\n+    with java.io.Serializable {\n+\n+  import Preconditions._\n+  import ChronoField._\n+\n+  requireDateTime(month >= 1 && month <= 12, s\"Invalid month value: $month\")\n+  requireDateTime(day >= 1 && day <= 31, s\"Invalid day value: $day\")\n+\n+  def isSupported(field: TemporalField): Boolean = field match {\n+    case _: ChronoField => field == DAY_OF_MONTH || field == MONTH_OF_YEAR\n+    case null           => false\n+    case _              => field.isSupportedBy(this)\n+  }\n+\n+  override def range(field: TemporalField): ValueRange = field match {\n+    case DAY_OF_MONTH => ValueRange.of(1, getMonth().minLength(), getMonth().maxLength())\n+    case _            => super.range(field)\n+  }\n+\n+  // Implemented by TemporalAccessor\n+  // def get(field: TemporalField): Int\n+\n+  def getLong(field: TemporalField): Long = field match {\n+    case DAY_OF_MONTH  => day\n+    case MONTH_OF_YEAR => month\n+\n+    case _: ChronoField =>\n+      throw new UnsupportedTemporalTypeException(s\"Field not supported: $field\")\n+\n+    case _ => field.getFrom(this)\n+  }\n+\n+  def getMonthValue(): Int = month\n+\n+  def getMonth(): Month = Month.of(month)\n+\n+  def getDayOfMonth(): Int = day\n+\n+  override def equals(other: Any): Boolean = other match {\n+    case that: MonthDay =>\n+      that.getMonthValue == getMonthValue() && that.getDayOfMonth == getDayOfMonth()\n+    case _ => false","path":"javalib/src/main/scala/java/time/MonthDay.scala","position":55,"original_position":55,"commit_id":"07511a5132c6df8ee66daf0f834fc99bcf820485","original_commit_id":"07511a5132c6df8ee66daf0f834fc99bcf820485","user":{"login":"nicolasstucki","id":3648029,"avatar_url":"https://avatars.githubusercontent.com/u/3648029?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasstucki","html_url":"https://github.com/nicolasstucki","followers_url":"https://api.github.com/users/nicolasstucki/followers","following_url":"https://api.github.com/users/nicolasstucki/following{/other_user}","gists_url":"https://api.github.com/users/nicolasstucki/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasstucki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasstucki/subscriptions","organizations_url":"https://api.github.com/users/nicolasstucki/orgs","repos_url":"https://api.github.com/users/nicolasstucki/repos","events_url":"https://api.github.com/users/nicolasstucki/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasstucki/received_events","type":"User","site_admin":false},"body":"Add a line before this `case _ =>`","created_at":"2016-01-04T08:35:17Z","updated_at":"2016-01-04T08:35:17Z","html_url":"https://github.com/scala-js/scala-js/pull/2128#discussion_r48711416","pull_request_url":"https://api.github.com/repos/scala-js/scala-js/pulls/2128","_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js/pulls/comments/48711416"},"html":{"href":"https://github.com/scala-js/scala-js/pull/2128#discussion_r48711416"},"pull_request":{"href":"https://api.github.com/repos/scala-js/scala-js/pulls/2128"}}},"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js/pulls/2128","id":54353142,"html_url":"https://github.com/scala-js/scala-js/pull/2128","diff_url":"https://github.com/scala-js/scala-js/pull/2128.diff","patch_url":"https://github.com/scala-js/scala-js/pull/2128.patch","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2128","number":2128,"state":"open","locked":false,"title":"Added initial implementation for MonthDay","user":{"login":"alonsodomin","id":2269440,"avatar_url":"https://avatars.githubusercontent.com/u/2269440?v=3","gravatar_id":"","url":"https://api.github.com/users/alonsodomin","html_url":"https://github.com/alonsodomin","followers_url":"https://api.github.com/users/alonsodomin/followers","following_url":"https://api.github.com/users/alonsodomin/following{/other_user}","gists_url":"https://api.github.com/users/alonsodomin/gists{/gist_id}","starred_url":"https://api.github.com/users/alonsodomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alonsodomin/subscriptions","organizations_url":"https://api.github.com/users/alonsodomin/orgs","repos_url":"https://api.github.com/users/alonsodomin/repos","events_url":"https://api.github.com/users/alonsodomin/events{/privacy}","received_events_url":"https://api.github.com/users/alonsodomin/received_events","type":"User","site_admin":false},"body":"Trying to contribute to the JDK8 time port to ScalaJS. An implementation of `MonthDay` in this PR.","created_at":"2015-12-22T10:14:18Z","updated_at":"2016-01-04T08:35:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f42d42671235dd83698f44ca85a3e0c69b0a96da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scala-js/scala-js/pulls/2128/commits","review_comments_url":"https://api.github.com/repos/scala-js/scala-js/pulls/2128/comments","review_comment_url":"https://api.github.com/repos/scala-js/scala-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2128/comments","statuses_url":"https://api.github.com/repos/scala-js/scala-js/statuses/07511a5132c6df8ee66daf0f834fc99bcf820485","head":{"label":"alonsodomin:add-month-year","ref":"add-month-year","sha":"07511a5132c6df8ee66daf0f834fc99bcf820485","user":{"login":"alonsodomin","id":2269440,"avatar_url":"https://avatars.githubusercontent.com/u/2269440?v=3","gravatar_id":"","url":"https://api.github.com/users/alonsodomin","html_url":"https://github.com/alonsodomin","followers_url":"https://api.github.com/users/alonsodomin/followers","following_url":"https://api.github.com/users/alonsodomin/following{/other_user}","gists_url":"https://api.github.com/users/alonsodomin/gists{/gist_id}","starred_url":"https://api.github.com/users/alonsodomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alonsodomin/subscriptions","organizations_url":"https://api.github.com/users/alonsodomin/orgs","repos_url":"https://api.github.com/users/alonsodomin/repos","events_url":"https://api.github.com/users/alonsodomin/events{/privacy}","received_events_url":"https://api.github.com/users/alonsodomin/received_events","type":"User","site_admin":false},"repo":{"id":48377827,"name":"scala-js","full_name":"alonsodomin/scala-js","owner":{"login":"alonsodomin","id":2269440,"avatar_url":"https://avatars.githubusercontent.com/u/2269440?v=3","gravatar_id":"","url":"https://api.github.com/users/alonsodomin","html_url":"https://github.com/alonsodomin","followers_url":"https://api.github.com/users/alonsodomin/followers","following_url":"https://api.github.com/users/alonsodomin/following{/other_user}","gists_url":"https://api.github.com/users/alonsodomin/gists{/gist_id}","starred_url":"https://api.github.com/users/alonsodomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alonsodomin/subscriptions","organizations_url":"https://api.github.com/users/alonsodomin/orgs","repos_url":"https://api.github.com/users/alonsodomin/repos","events_url":"https://api.github.com/users/alonsodomin/events{/privacy}","received_events_url":"https://api.github.com/users/alonsodomin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alonsodomin/scala-js","description":"Scala.js, the Scala to JavaScript compiler","fork":true,"url":"https://api.github.com/repos/alonsodomin/scala-js","forks_url":"https://api.github.com/repos/alonsodomin/scala-js/forks","keys_url":"https://api.github.com/repos/alonsodomin/scala-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alonsodomin/scala-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alonsodomin/scala-js/teams","hooks_url":"https://api.github.com/repos/alonsodomin/scala-js/hooks","issue_events_url":"https://api.github.com/repos/alonsodomin/scala-js/issues/events{/number}","events_url":"https://api.github.com/repos/alonsodomin/scala-js/events","assignees_url":"https://api.github.com/repos/alonsodomin/scala-js/assignees{/user}","branches_url":"https://api.github.com/repos/alonsodomin/scala-js/branches{/branch}","tags_url":"https://api.github.com/repos/alonsodomin/scala-js/tags","blobs_url":"https://api.github.com/repos/alonsodomin/scala-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alonsodomin/scala-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alonsodomin/scala-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/alonsodomin/scala-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alonsodomin/scala-js/statuses/{sha}","languages_url":"https://api.github.com/repos/alonsodomin/scala-js/languages","stargazers_url":"https://api.github.com/repos/alonsodomin/scala-js/stargazers","contributors_url":"https://api.github.com/repos/alonsodomin/scala-js/contributors","subscribers_url":"https://api.github.com/repos/alonsodomin/scala-js/subscribers","subscription_url":"https://api.github.com/repos/alonsodomin/scala-js/subscription","commits_url":"https://api.github.com/repos/alonsodomin/scala-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/alonsodomin/scala-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/alonsodomin/scala-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/alonsodomin/scala-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/alonsodomin/scala-js/contents/{+path}","compare_url":"https://api.github.com/repos/alonsodomin/scala-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alonsodomin/scala-js/merges","archive_url":"https://api.github.com/repos/alonsodomin/scala-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alonsodomin/scala-js/downloads","issues_url":"https://api.github.com/repos/alonsodomin/scala-js/issues{/number}","pulls_url":"https://api.github.com/repos/alonsodomin/scala-js/pulls{/number}","milestones_url":"https://api.github.com/repos/alonsodomin/scala-js/milestones{/number}","notifications_url":"https://api.github.com/repos/alonsodomin/scala-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alonsodomin/scala-js/labels{/name}","releases_url":"https://api.github.com/repos/alonsodomin/scala-js/releases{/id}","created_at":"2015-12-21T15:03:25Z","updated_at":"2015-12-21T15:03:28Z","pushed_at":"2015-12-30T13:32:15Z","git_url":"git://github.com/alonsodomin/scala-js.git","ssh_url":"git@github.com:alonsodomin/scala-js.git","clone_url":"https://github.com/alonsodomin/scala-js.git","svn_url":"https://github.com/alonsodomin/scala-js","homepage":"http://www.scala-js.org/","size":10409,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"scala-js:master","ref":"master","sha":"ac657372d8edf3919b299ac9458de06619eed128","user":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"repo":{"id":8272315,"name":"scala-js","full_name":"scala-js/scala-js","owner":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-js/scala-js","description":"Scala.js, the Scala to JavaScript compiler","fork":false,"url":"https://api.github.com/repos/scala-js/scala-js","forks_url":"https://api.github.com/repos/scala-js/scala-js/forks","keys_url":"https://api.github.com/repos/scala-js/scala-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-js/scala-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-js/scala-js/teams","hooks_url":"https://api.github.com/repos/scala-js/scala-js/hooks","issue_events_url":"https://api.github.com/repos/scala-js/scala-js/issues/events{/number}","events_url":"https://api.github.com/repos/scala-js/scala-js/events","assignees_url":"https://api.github.com/repos/scala-js/scala-js/assignees{/user}","branches_url":"https://api.github.com/repos/scala-js/scala-js/branches{/branch}","tags_url":"https://api.github.com/repos/scala-js/scala-js/tags","blobs_url":"https://api.github.com/repos/scala-js/scala-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-js/scala-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-js/scala-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-js/scala-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-js/scala-js/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-js/scala-js/languages","stargazers_url":"https://api.github.com/repos/scala-js/scala-js/stargazers","contributors_url":"https://api.github.com/repos/scala-js/scala-js/contributors","subscribers_url":"https://api.github.com/repos/scala-js/scala-js/subscribers","subscription_url":"https://api.github.com/repos/scala-js/scala-js/subscription","commits_url":"https://api.github.com/repos/scala-js/scala-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-js/scala-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-js/scala-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-js/scala-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-js/scala-js/contents/{+path}","compare_url":"https://api.github.com/repos/scala-js/scala-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-js/scala-js/merges","archive_url":"https://api.github.com/repos/scala-js/scala-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-js/scala-js/downloads","issues_url":"https://api.github.com/repos/scala-js/scala-js/issues{/number}","pulls_url":"https://api.github.com/repos/scala-js/scala-js/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-js/scala-js/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-js/scala-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-js/scala-js/labels{/name}","releases_url":"https://api.github.com/repos/scala-js/scala-js/releases{/id}","created_at":"2013-02-18T16:33:55Z","updated_at":"2016-01-04T03:46:18Z","pushed_at":"2016-01-02T10:28:59Z","git_url":"git://github.com/scala-js/scala-js.git","ssh_url":"git@github.com:scala-js/scala-js.git","clone_url":"https://github.com/scala-js/scala-js.git","svn_url":"https://github.com/scala-js/scala-js","homepage":"http://www.scala-js.org/","size":12143,"stargazers_count":2057,"watchers_count":2057,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":189,"mirror_url":null,"open_issues_count":101,"forks":189,"open_issues":101,"watchers":2057,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js/pulls/2128"},"html":{"href":"https://github.com/scala-js/scala-js/pull/2128"},"issue":{"href":"https://api.github.com/repos/scala-js/scala-js/issues/2128"},"comments":{"href":"https://api.github.com/repos/scala-js/scala-js/issues/2128/comments"},"review_comments":{"href":"https://api.github.com/repos/scala-js/scala-js/pulls/2128/comments"},"review_comment":{"href":"https://api.github.com/repos/scala-js/scala-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala-js/scala-js/pulls/2128/commits"},"statuses":{"href":"https://api.github.com/repos/scala-js/scala-js/statuses/07511a5132c6df8ee66daf0f834fc99bcf820485"}}}}