{"action":"created","comment":{"url":"https://api.github.com/repos/spotify/dns-java/pulls/comments/31231977","id":31231977,"diff_hunk":"@@ -1,19 +1,96 @@\n package com.spotify.dns;\n \n-import com.google.auto.value.AutoValue;\n+import static com.google.common.base.Preconditions.checkNotNull;\n \n /**\n  * Immutable data object with the relevant parts of an SRV record.\n  */\n-@AutoValue\n-public abstract class LookupResult {\n-  public abstract String host();\n-  public abstract int port();\n-  public abstract int priority();\n-  public abstract int weight();\n-  public abstract long ttl();\n+public class LookupResult {\n+\n+  private final String host;\n+  private final int port;\n+  private final int priority;\n+  private final int weight;\n+  private final long ttl;\n+\n+  private LookupResult(final String host, final int port, final int priority, final int weight,\n+                       final long ttl) {\n+    this.host = checkNotNull(host, \"host\");\n+    this.port = port;\n+    this.priority = priority;\n+    this.weight = weight;\n+    this.ttl = ttl;\n+  }\n \n   public static LookupResult create(String host, int port, int priority, int weight, long ttl) {\n-    return new AutoValue_LookupResult(host, port, priority, weight, ttl);\n+    return new LookupResult(host, port, priority, weight, ttl);\n+  }\n+\n+  public String host() {\n+    return host;\n+  }\n+\n+  public int port() {\n+    return port;\n+  }\n+\n+  public int priority() {\n+    return priority;\n+  }\n+\n+  public int weight() {\n+    return weight;\n+  }\n+\n+  public long ttl() {\n+    return ttl;\n+  }\n+\n+  @Override\n+  public boolean equals(final Object o) {\n+    if (this == o) {\n+      return true;\n+    }\n+    if (o == null || getClass() != o.getClass()) {\n+      return false;\n+    }\n+\n+    final LookupResult that = (LookupResult) o;\n+\n+    if (port != that.port) {\n+      return false;\n+    }\n+    if (priority != that.priority) {\n+      return false;\n+    }\n+    if (weight != that.weight) {\n+      return false;\n+    }\n+    if (ttl != that.ttl) {\n+      return false;\n+    }\n+    return !(host != null ? !host.equals(that.host) : that.host != null);","path":"src/main/java/com/spotify/dns/LookupResult.java","position":81,"original_position":81,"commit_id":"9ac1e5c72a467f9605ff442dc4fc76f047986064","original_commit_id":"9ac1e5c72a467f9605ff442dc4fc76f047986064","user":{"login":"marcusb","id":46314,"avatar_url":"https://avatars.githubusercontent.com/u/46314?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusb","html_url":"https://github.com/marcusb","followers_url":"https://api.github.com/users/marcusb/followers","following_url":"https://api.github.com/users/marcusb/following{/other_user}","gists_url":"https://api.github.com/users/marcusb/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusb/subscriptions","organizations_url":"https://api.github.com/users/marcusb/orgs","repos_url":"https://api.github.com/users/marcusb/repos","events_url":"https://api.github.com/users/marcusb/events{/privacy}","received_events_url":"https://api.github.com/users/marcusb/received_events","type":"User","site_admin":false},"body":"Objects.equal?","created_at":"2015-05-28T13:24:17Z","updated_at":"2015-05-28T13:24:17Z","html_url":"https://github.com/spotify/dns-java/pull/13#discussion_r31231977","pull_request_url":"https://api.github.com/repos/spotify/dns-java/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/spotify/dns-java/pulls/comments/31231977"},"html":{"href":"https://github.com/spotify/dns-java/pull/13#discussion_r31231977"},"pull_request":{"href":"https://api.github.com/repos/spotify/dns-java/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/spotify/dns-java/pulls/13","id":34238641,"html_url":"https://github.com/spotify/dns-java/pull/13","diff_url":"https://github.com/spotify/dns-java/pull/13.diff","patch_url":"https://github.com/spotify/dns-java/pull/13.patch","issue_url":"https://api.github.com/repos/spotify/dns-java/issues/13","number":13,"state":"open","locked":false,"title":"drop guava dependency to 11.0.2","user":{"login":"danielnorberg","id":393289,"avatar_url":"https://avatars.githubusercontent.com/u/393289?v=3","gravatar_id":"","url":"https://api.github.com/users/danielnorberg","html_url":"https://github.com/danielnorberg","followers_url":"https://api.github.com/users/danielnorberg/followers","following_url":"https://api.github.com/users/danielnorberg/following{/other_user}","gists_url":"https://api.github.com/users/danielnorberg/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnorberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnorberg/subscriptions","organizations_url":"https://api.github.com/users/danielnorberg/orgs","repos_url":"https://api.github.com/users/danielnorberg/repos","events_url":"https://api.github.com/users/danielnorberg/events{/privacy}","received_events_url":"https://api.github.com/users/danielnorberg/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-28T07:01:34Z","updated_at":"2015-05-28T13:24:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9adec7ed576a637d26f6842ff543f78b32329da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spotify/dns-java/pulls/13/commits","review_comments_url":"https://api.github.com/repos/spotify/dns-java/pulls/13/comments","review_comment_url":"https://api.github.com/repos/spotify/dns-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spotify/dns-java/issues/13/comments","statuses_url":"https://api.github.com/repos/spotify/dns-java/statuses/9ac1e5c72a467f9605ff442dc4fc76f047986064","head":{"label":"spotify:dano/guava-11.0.2","ref":"dano/guava-11.0.2","sha":"9ac1e5c72a467f9605ff442dc4fc76f047986064","user":{"login":"spotify","id":251374,"avatar_url":"https://avatars.githubusercontent.com/u/251374?v=3","gravatar_id":"","url":"https://api.github.com/users/spotify","html_url":"https://github.com/spotify","followers_url":"https://api.github.com/users/spotify/followers","following_url":"https://api.github.com/users/spotify/following{/other_user}","gists_url":"https://api.github.com/users/spotify/gists{/gist_id}","starred_url":"https://api.github.com/users/spotify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spotify/subscriptions","organizations_url":"https://api.github.com/users/spotify/orgs","repos_url":"https://api.github.com/users/spotify/repos","events_url":"https://api.github.com/users/spotify/events{/privacy}","received_events_url":"https://api.github.com/users/spotify/received_events","type":"Organization","site_admin":false},"repo":{"id":17630966,"name":"dns-java","full_name":"spotify/dns-java","owner":{"login":"spotify","id":251374,"avatar_url":"https://avatars.githubusercontent.com/u/251374?v=3","gravatar_id":"","url":"https://api.github.com/users/spotify","html_url":"https://github.com/spotify","followers_url":"https://api.github.com/users/spotify/followers","following_url":"https://api.github.com/users/spotify/following{/other_user}","gists_url":"https://api.github.com/users/spotify/gists{/gist_id}","starred_url":"https://api.github.com/users/spotify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spotify/subscriptions","organizations_url":"https://api.github.com/users/spotify/orgs","repos_url":"https://api.github.com/users/spotify/repos","events_url":"https://api.github.com/users/spotify/events{/privacy}","received_events_url":"https://api.github.com/users/spotify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spotify/dns-java","description":"DNS wrapper library that provides SRV lookup functionality","fork":false,"url":"https://api.github.com/repos/spotify/dns-java","forks_url":"https://api.github.com/repos/spotify/dns-java/forks","keys_url":"https://api.github.com/repos/spotify/dns-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spotify/dns-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spotify/dns-java/teams","hooks_url":"https://api.github.com/repos/spotify/dns-java/hooks","issue_events_url":"https://api.github.com/repos/spotify/dns-java/issues/events{/number}","events_url":"https://api.github.com/repos/spotify/dns-java/events","assignees_url":"https://api.github.com/repos/spotify/dns-java/assignees{/user}","branches_url":"https://api.github.com/repos/spotify/dns-java/branches{/branch}","tags_url":"https://api.github.com/repos/spotify/dns-java/tags","blobs_url":"https://api.github.com/repos/spotify/dns-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spotify/dns-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spotify/dns-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/spotify/dns-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spotify/dns-java/statuses/{sha}","languages_url":"https://api.github.com/repos/spotify/dns-java/languages","stargazers_url":"https://api.github.com/repos/spotify/dns-java/stargazers","contributors_url":"https://api.github.com/repos/spotify/dns-java/contributors","subscribers_url":"https://api.github.com/repos/spotify/dns-java/subscribers","subscription_url":"https://api.github.com/repos/spotify/dns-java/subscription","commits_url":"https://api.github.com/repos/spotify/dns-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/spotify/dns-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/spotify/dns-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/spotify/dns-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/spotify/dns-java/contents/{+path}","compare_url":"https://api.github.com/repos/spotify/dns-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spotify/dns-java/merges","archive_url":"https://api.github.com/repos/spotify/dns-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spotify/dns-java/downloads","issues_url":"https://api.github.com/repos/spotify/dns-java/issues{/number}","pulls_url":"https://api.github.com/repos/spotify/dns-java/pulls{/number}","milestones_url":"https://api.github.com/repos/spotify/dns-java/milestones{/number}","notifications_url":"https://api.github.com/repos/spotify/dns-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spotify/dns-java/labels{/name}","releases_url":"https://api.github.com/repos/spotify/dns-java/releases{/id}","created_at":"2014-03-11T13:16:54Z","updated_at":"2015-05-27T18:42:25Z","pushed_at":"2015-04-28T07:01:34Z","git_url":"git://github.com/spotify/dns-java.git","ssh_url":"git@github.com:spotify/dns-java.git","clone_url":"https://github.com/spotify/dns-java.git","svn_url":"https://github.com/spotify/dns-java","homepage":null,"size":486,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":27,"default_branch":"master"}},"base":{"label":"spotify:master","ref":"master","sha":"1e02fb677c289072e94520cda33830fa16e19596","user":{"login":"spotify","id":251374,"avatar_url":"https://avatars.githubusercontent.com/u/251374?v=3","gravatar_id":"","url":"https://api.github.com/users/spotify","html_url":"https://github.com/spotify","followers_url":"https://api.github.com/users/spotify/followers","following_url":"https://api.github.com/users/spotify/following{/other_user}","gists_url":"https://api.github.com/users/spotify/gists{/gist_id}","starred_url":"https://api.github.com/users/spotify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spotify/subscriptions","organizations_url":"https://api.github.com/users/spotify/orgs","repos_url":"https://api.github.com/users/spotify/repos","events_url":"https://api.github.com/users/spotify/events{/privacy}","received_events_url":"https://api.github.com/users/spotify/received_events","type":"Organization","site_admin":false},"repo":{"id":17630966,"name":"dns-java","full_name":"spotify/dns-java","owner":{"login":"spotify","id":251374,"avatar_url":"https://avatars.githubusercontent.com/u/251374?v=3","gravatar_id":"","url":"https://api.github.com/users/spotify","html_url":"https://github.com/spotify","followers_url":"https://api.github.com/users/spotify/followers","following_url":"https://api.github.com/users/spotify/following{/other_user}","gists_url":"https://api.github.com/users/spotify/gists{/gist_id}","starred_url":"https://api.github.com/users/spotify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spotify/subscriptions","organizations_url":"https://api.github.com/users/spotify/orgs","repos_url":"https://api.github.com/users/spotify/repos","events_url":"https://api.github.com/users/spotify/events{/privacy}","received_events_url":"https://api.github.com/users/spotify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spotify/dns-java","description":"DNS wrapper library that provides SRV lookup functionality","fork":false,"url":"https://api.github.com/repos/spotify/dns-java","forks_url":"https://api.github.com/repos/spotify/dns-java/forks","keys_url":"https://api.github.com/repos/spotify/dns-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spotify/dns-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spotify/dns-java/teams","hooks_url":"https://api.github.com/repos/spotify/dns-java/hooks","issue_events_url":"https://api.github.com/repos/spotify/dns-java/issues/events{/number}","events_url":"https://api.github.com/repos/spotify/dns-java/events","assignees_url":"https://api.github.com/repos/spotify/dns-java/assignees{/user}","branches_url":"https://api.github.com/repos/spotify/dns-java/branches{/branch}","tags_url":"https://api.github.com/repos/spotify/dns-java/tags","blobs_url":"https://api.github.com/repos/spotify/dns-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spotify/dns-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spotify/dns-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/spotify/dns-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spotify/dns-java/statuses/{sha}","languages_url":"https://api.github.com/repos/spotify/dns-java/languages","stargazers_url":"https://api.github.com/repos/spotify/dns-java/stargazers","contributors_url":"https://api.github.com/repos/spotify/dns-java/contributors","subscribers_url":"https://api.github.com/repos/spotify/dns-java/subscribers","subscription_url":"https://api.github.com/repos/spotify/dns-java/subscription","commits_url":"https://api.github.com/repos/spotify/dns-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/spotify/dns-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/spotify/dns-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/spotify/dns-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/spotify/dns-java/contents/{+path}","compare_url":"https://api.github.com/repos/spotify/dns-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spotify/dns-java/merges","archive_url":"https://api.github.com/repos/spotify/dns-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spotify/dns-java/downloads","issues_url":"https://api.github.com/repos/spotify/dns-java/issues{/number}","pulls_url":"https://api.github.com/repos/spotify/dns-java/pulls{/number}","milestones_url":"https://api.github.com/repos/spotify/dns-java/milestones{/number}","notifications_url":"https://api.github.com/repos/spotify/dns-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spotify/dns-java/labels{/name}","releases_url":"https://api.github.com/repos/spotify/dns-java/releases{/id}","created_at":"2014-03-11T13:16:54Z","updated_at":"2015-05-27T18:42:25Z","pushed_at":"2015-04-28T07:01:34Z","git_url":"git://github.com/spotify/dns-java.git","ssh_url":"git@github.com:spotify/dns-java.git","clone_url":"https://github.com/spotify/dns-java.git","svn_url":"https://github.com/spotify/dns-java","homepage":null,"size":486,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spotify/dns-java/pulls/13"},"html":{"href":"https://github.com/spotify/dns-java/pull/13"},"issue":{"href":"https://api.github.com/repos/spotify/dns-java/issues/13"},"comments":{"href":"https://api.github.com/repos/spotify/dns-java/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/spotify/dns-java/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/spotify/dns-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spotify/dns-java/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/spotify/dns-java/statuses/9ac1e5c72a467f9605ff442dc4fc76f047986064"}}}}