{"action":"created","comment":{"url":"https://api.github.com/repos/apache/commons-lang/pulls/comments/30207724","id":30207724,"diff_hunk":"@@ -874,7 +888,752 @@ public static void matchesPattern(final CharSequence input, final String pattern\n             throw new IllegalArgumentException(String.format(message, values));\n         }\n     }\n-\n+    \n+    // notNaN\n+    //---------------------------------------------------------------------------------\n+    \n+    /**\n+     * <p>Validates that the specified argument is not {@code NaN}; otherwise\n+     * throwing an exception.</p>\n+     * \n+     * <pre>Validate.notNaN(myDouble);</pre>\n+     * \n+     * <p>The message of the exception is &quot;The validated value is not a \n+     * number&quot;.</p>\n+     * \n+     * @param value  the value to validate\n+     * @throws IllegalArgumentException if the value is not a number\n+     * @see #notNaN(double, java.lang.String, java.lang.Object...) \n+     * \n+     * @since 3.4\n+     */\n+    public static void notNaN(final double value) {\n+        notNaN(value, DEFAULT_NOT_NAN_EX_MESSAGE);\n+    }\n+    \n+    /**\n+     * <p>Validates that the specified argument is not {@code NaN}; otherwise\n+     * throwing an exception with the specified message.</p>\n+     * \n+     * <pre>Validate.notNaN(myDouble, \"The value must be a number\");</pre>\n+     *\n+     * @param value  the value to validate\n+     * @param message  the {@link String#format(String, Object...)} exception message if invalid, not null\n+     * @param values  the optional values for the formatted exception message\n+     * @throws IllegalArgumentException if the value is not a number\n+     * @see #notNaN(double) \n+     * \n+     * @since 3.4\n+     */\n+    public static void notNaN(final double value, final String message, final Object... values) {\n+        if (value != value) {","path":"src/main/java/org/apache/commons/lang3/Validate.java","position":64,"original_position":64,"commit_id":"f9c313145eb42d4317268e06a9f880e87ebffa5c","original_commit_id":"f9c313145eb42d4317268e06a9f880e87ebffa5c","user":{"login":"britter","id":1327662,"avatar_url":"https://avatars.githubusercontent.com/u/1327662?v=3","gravatar_id":"","url":"https://api.github.com/users/britter","html_url":"https://github.com/britter","followers_url":"https://api.github.com/users/britter/followers","following_url":"https://api.github.com/users/britter/following{/other_user}","gists_url":"https://api.github.com/users/britter/gists{/gist_id}","starred_url":"https://api.github.com/users/britter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britter/subscriptions","organizations_url":"https://api.github.com/users/britter/orgs","repos_url":"https://api.github.com/users/britter/repos","events_url":"https://api.github.com/users/britter/events{/privacy}","received_events_url":"https://api.github.com/users/britter/received_events","type":"User","site_admin":false},"body":"Hello @Lady-Stardust,\r\n\r\ncalling a method is not that expensive (approximately 2ns), so we can live with that ;-)\r\n\r\nYou can simply add more commits to your branch and github will update the PR when you push your changes to your fork. Thank you!","created_at":"2015-05-13T07:30:44Z","updated_at":"2015-05-13T07:30:44Z","html_url":"https://github.com/apache/commons-lang/pull/87#discussion_r30207724","pull_request_url":"https://api.github.com/repos/apache/commons-lang/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/apache/commons-lang/pulls/comments/30207724"},"html":{"href":"https://github.com/apache/commons-lang/pull/87#discussion_r30207724"},"pull_request":{"href":"https://api.github.com/repos/apache/commons-lang/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/apache/commons-lang/pulls/87","id":35075918,"html_url":"https://github.com/apache/commons-lang/pull/87","diff_url":"https://github.com/apache/commons-lang/pull/87.diff","patch_url":"https://github.com/apache/commons-lang/pull/87.patch","issue_url":"https://api.github.com/repos/apache/commons-lang/issues/87","number":87,"state":"open","locked":false,"title":"Lang 1134","user":{"login":"Lady-Stardust","id":12372658,"avatar_url":"https://avatars.githubusercontent.com/u/12372658?v=3","gravatar_id":"","url":"https://api.github.com/users/Lady-Stardust","html_url":"https://github.com/Lady-Stardust","followers_url":"https://api.github.com/users/Lady-Stardust/followers","following_url":"https://api.github.com/users/Lady-Stardust/following{/other_user}","gists_url":"https://api.github.com/users/Lady-Stardust/gists{/gist_id}","starred_url":"https://api.github.com/users/Lady-Stardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lady-Stardust/subscriptions","organizations_url":"https://api.github.com/users/Lady-Stardust/orgs","repos_url":"https://api.github.com/users/Lady-Stardust/repos","events_url":"https://api.github.com/users/Lady-Stardust/events{/privacy}","received_events_url":"https://api.github.com/users/Lady-Stardust/received_events","type":"User","site_admin":false},"body":"LANG-1134","created_at":"2015-05-10T01:46:11Z","updated_at":"2015-05-13T07:30:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53e9a4fa592c3568468bb4b71a8a7df065caa640","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/commons-lang/pulls/87/commits","review_comments_url":"https://api.github.com/repos/apache/commons-lang/pulls/87/comments","review_comment_url":"https://api.github.com/repos/apache/commons-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/commons-lang/issues/87/comments","statuses_url":"https://api.github.com/repos/apache/commons-lang/statuses/f9c313145eb42d4317268e06a9f880e87ebffa5c","head":{"label":"Lady-Stardust:LANG-1134","ref":"LANG-1134","sha":"f9c313145eb42d4317268e06a9f880e87ebffa5c","user":{"login":"Lady-Stardust","id":12372658,"avatar_url":"https://avatars.githubusercontent.com/u/12372658?v=3","gravatar_id":"","url":"https://api.github.com/users/Lady-Stardust","html_url":"https://github.com/Lady-Stardust","followers_url":"https://api.github.com/users/Lady-Stardust/followers","following_url":"https://api.github.com/users/Lady-Stardust/following{/other_user}","gists_url":"https://api.github.com/users/Lady-Stardust/gists{/gist_id}","starred_url":"https://api.github.com/users/Lady-Stardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lady-Stardust/subscriptions","organizations_url":"https://api.github.com/users/Lady-Stardust/orgs","repos_url":"https://api.github.com/users/Lady-Stardust/repos","events_url":"https://api.github.com/users/Lady-Stardust/events{/privacy}","received_events_url":"https://api.github.com/users/Lady-Stardust/received_events","type":"User","site_admin":false},"repo":{"id":35333196,"name":"commons-lang","full_name":"Lady-Stardust/commons-lang","owner":{"login":"Lady-Stardust","id":12372658,"avatar_url":"https://avatars.githubusercontent.com/u/12372658?v=3","gravatar_id":"","url":"https://api.github.com/users/Lady-Stardust","html_url":"https://github.com/Lady-Stardust","followers_url":"https://api.github.com/users/Lady-Stardust/followers","following_url":"https://api.github.com/users/Lady-Stardust/following{/other_user}","gists_url":"https://api.github.com/users/Lady-Stardust/gists{/gist_id}","starred_url":"https://api.github.com/users/Lady-Stardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lady-Stardust/subscriptions","organizations_url":"https://api.github.com/users/Lady-Stardust/orgs","repos_url":"https://api.github.com/users/Lady-Stardust/repos","events_url":"https://api.github.com/users/Lady-Stardust/events{/privacy}","received_events_url":"https://api.github.com/users/Lady-Stardust/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lady-Stardust/commons-lang","description":"Mirror of Apache Commons Lang","fork":true,"url":"https://api.github.com/repos/Lady-Stardust/commons-lang","forks_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/forks","keys_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/teams","hooks_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/hooks","issue_events_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/issues/events{/number}","events_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/events","assignees_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/assignees{/user}","branches_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/branches{/branch}","tags_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/tags","blobs_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/languages","stargazers_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/stargazers","contributors_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/contributors","subscribers_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/subscribers","subscription_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/subscription","commits_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/contents/{+path}","compare_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/merges","archive_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/downloads","issues_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/issues{/number}","pulls_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/labels{/name}","releases_url":"https://api.github.com/repos/Lady-Stardust/commons-lang/releases{/id}","created_at":"2015-05-09T15:16:15Z","updated_at":"2015-05-09T15:16:17Z","pushed_at":"2015-05-10T01:42:14Z","git_url":"git://github.com/Lady-Stardust/commons-lang.git","ssh_url":"git@github.com:Lady-Stardust/commons-lang.git","clone_url":"https://github.com/Lady-Stardust/commons-lang.git","svn_url":"https://github.com/Lady-Stardust/commons-lang","homepage":null,"size":30449,"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":"71d7c3264239c55b6e2daf89c44c5685085f26dd","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":206378,"name":"commons-lang","full_name":"apache/commons-lang","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/commons-lang","description":"Mirror of Apache Commons Lang","fork":false,"url":"https://api.github.com/repos/apache/commons-lang","forks_url":"https://api.github.com/repos/apache/commons-lang/forks","keys_url":"https://api.github.com/repos/apache/commons-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/commons-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/commons-lang/teams","hooks_url":"https://api.github.com/repos/apache/commons-lang/hooks","issue_events_url":"https://api.github.com/repos/apache/commons-lang/issues/events{/number}","events_url":"https://api.github.com/repos/apache/commons-lang/events","assignees_url":"https://api.github.com/repos/apache/commons-lang/assignees{/user}","branches_url":"https://api.github.com/repos/apache/commons-lang/branches{/branch}","tags_url":"https://api.github.com/repos/apache/commons-lang/tags","blobs_url":"https://api.github.com/repos/apache/commons-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/commons-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/commons-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/commons-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/commons-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/commons-lang/languages","stargazers_url":"https://api.github.com/repos/apache/commons-lang/stargazers","contributors_url":"https://api.github.com/repos/apache/commons-lang/contributors","subscribers_url":"https://api.github.com/repos/apache/commons-lang/subscribers","subscription_url":"https://api.github.com/repos/apache/commons-lang/subscription","commits_url":"https://api.github.com/repos/apache/commons-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/commons-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/commons-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/commons-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/commons-lang/contents/{+path}","compare_url":"https://api.github.com/repos/apache/commons-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/commons-lang/merges","archive_url":"https://api.github.com/repos/apache/commons-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/commons-lang/downloads","issues_url":"https://api.github.com/repos/apache/commons-lang/issues{/number}","pulls_url":"https://api.github.com/repos/apache/commons-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/commons-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/commons-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/commons-lang/labels{/name}","releases_url":"https://api.github.com/repos/apache/commons-lang/releases{/id}","created_at":"2009-05-21T01:24:46Z","updated_at":"2015-05-12T06:49:40Z","pushed_at":"2015-05-12T16:59:38Z","git_url":"git://github.com/apache/commons-lang.git","ssh_url":"git@github.com:apache/commons-lang.git","clone_url":"https://github.com/apache/commons-lang.git","svn_url":"https://github.com/apache/commons-lang","homepage":null,"size":30449,"stargazers_count":263,"watchers_count":263,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":169,"mirror_url":"git://git.apache.org/commons-lang.git","open_issues_count":9,"forks":169,"open_issues":9,"watchers":263,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/commons-lang/pulls/87"},"html":{"href":"https://github.com/apache/commons-lang/pull/87"},"issue":{"href":"https://api.github.com/repos/apache/commons-lang/issues/87"},"comments":{"href":"https://api.github.com/repos/apache/commons-lang/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/commons-lang/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/commons-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/commons-lang/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/apache/commons-lang/statuses/f9c313145eb42d4317268e06a9f880e87ebffa5c"}}}}