{"action":"created","comment":{"url":"https://api.github.com/repos/querydsl/querydsl/pulls/comments/27355375","id":27355375,"diff_hunk":"@@ -44,12 +47,197 @@ private UnderscoreTemplates() {\n     private static final Templates TEMPLATES = new UnderscoreTemplates();\n \n     /**\n+     * Create a new Operation expression\n+     *\n+     * @param type\n+     * @param operator\n+     * @param args\n+     * @return\n+     */\n+    public static <T> Operation<T> operation(Class<? extends T> type, Operator operator,\n+                                             Expression<?>... args) {\n+        return operation(type, operator, ImmutableList.copyOf(args));\n+    }\n+\n+    /**\n+     * Create a new Operation expression\n+     *\n+     * @param type\n+     * @param operator\n+     * @param args\n+     * @return\n+     */\n+    public static <T> Operation<T> operation(Class<? extends T> type, Operator operator,\n+                                             ImmutableList<Expression<?>> args) {\n+        if (type.equals(Boolean.class)) {\n+            return (Operation<T>) new PredicateOperation(operator, args);\n+        } else {\n+            return new OperationImpl<T>(type, operator, args);\n+        }\n+    }\n+\n+    /**\n+     * Create a new Operation expression\n+     *\n+     * @param operator\n+     * @param args\n+     * @return\n+     */\n+    public static <T> PredicateOperation predicate(Operator operator, Expression<?>... args) {\n+        return predicate(operator, ImmutableList.copyOf(args));\n+    }\n+\n+    /**\n+     * Create a new Operation expression\n+     *\n+     * @param operator\n+     * @param args\n+     * @return\n+     */\n+    public static <T> PredicateOperation predicate(Operator operator, ImmutableList<Expression<?>> args) {","path":"querydsl-core/src/main/java/com/querydsl/core/types/ExpressionUtils.java","position":63,"original_position":63,"commit_id":"395c5f3dae89022fe2648f4442e3c0bd27573afc","original_commit_id":"395c5f3dae89022fe2648f4442e3c0bd27573afc","user":{"login":"Shredder121","id":4105066,"avatar_url":"https://avatars.githubusercontent.com/u/4105066?v=3","gravatar_id":"","url":"https://api.github.com/users/Shredder121","html_url":"https://github.com/Shredder121","followers_url":"https://api.github.com/users/Shredder121/followers","following_url":"https://api.github.com/users/Shredder121/following{/other_user}","gists_url":"https://api.github.com/users/Shredder121/gists{/gist_id}","starred_url":"https://api.github.com/users/Shredder121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shredder121/subscriptions","organizations_url":"https://api.github.com/users/Shredder121/orgs","repos_url":"https://api.github.com/users/Shredder121/repos","events_url":"https://api.github.com/users/Shredder121/events{/privacy}","received_events_url":"https://api.github.com/users/Shredder121/received_events","type":"User","site_admin":false},"body":"These `<T>`s don't occur anywhere in the method signature.","created_at":"2015-03-29T15:32:21Z","updated_at":"2015-03-29T15:32:21Z","html_url":"https://github.com/querydsl/querydsl/pull/1285#discussion_r27355375","pull_request_url":"https://api.github.com/repos/querydsl/querydsl/pulls/1285","_links":{"self":{"href":"https://api.github.com/repos/querydsl/querydsl/pulls/comments/27355375"},"html":{"href":"https://github.com/querydsl/querydsl/pull/1285#discussion_r27355375"},"pull_request":{"href":"https://api.github.com/repos/querydsl/querydsl/pulls/1285"}}},"pull_request":{"url":"https://api.github.com/repos/querydsl/querydsl/pulls/1285","id":32153573,"html_url":"https://github.com/querydsl/querydsl/pull/1285","diff_url":"https://github.com/querydsl/querydsl/pull/1285.diff","patch_url":"https://github.com/querydsl/querydsl/pull/1285.patch","issue_url":"https://api.github.com/repos/querydsl/querydsl/issues/1285","number":1285,"state":"open","locked":false,"title":"Move Expression creation to ExpressionUtils","user":{"login":"timowest","id":574167,"avatar_url":"https://avatars.githubusercontent.com/u/574167?v=3","gravatar_id":"","url":"https://api.github.com/users/timowest","html_url":"https://github.com/timowest","followers_url":"https://api.github.com/users/timowest/followers","following_url":"https://api.github.com/users/timowest/following{/other_user}","gists_url":"https://api.github.com/users/timowest/gists{/gist_id}","starred_url":"https://api.github.com/users/timowest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timowest/subscriptions","organizations_url":"https://api.github.com/users/timowest/orgs","repos_url":"https://api.github.com/users/timowest/repos","events_url":"https://api.github.com/users/timowest/events{/privacy}","received_events_url":"https://api.github.com/users/timowest/received_events","type":"User","site_admin":false},"body":"this PR is not backwards compatible, so no backport is provided","created_at":"2015-03-27T23:33:46Z","updated_at":"2015-03-29T15:32:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cfdfbcf87450d5ee8b65028e1fbd9f6bbad979f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/querydsl/querydsl/pulls/1285/commits","review_comments_url":"https://api.github.com/repos/querydsl/querydsl/pulls/1285/comments","review_comment_url":"https://api.github.com/repos/querydsl/querydsl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/1285/comments","statuses_url":"https://api.github.com/repos/querydsl/querydsl/statuses/395c5f3dae89022fe2648f4442e3c0bd27573afc","head":{"label":"querydsl:expression-utils","ref":"expression-utils","sha":"395c5f3dae89022fe2648f4442e3c0bd27573afc","user":{"login":"querydsl","id":7044479,"avatar_url":"https://avatars.githubusercontent.com/u/7044479?v=3","gravatar_id":"","url":"https://api.github.com/users/querydsl","html_url":"https://github.com/querydsl","followers_url":"https://api.github.com/users/querydsl/followers","following_url":"https://api.github.com/users/querydsl/following{/other_user}","gists_url":"https://api.github.com/users/querydsl/gists{/gist_id}","starred_url":"https://api.github.com/users/querydsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/querydsl/subscriptions","organizations_url":"https://api.github.com/users/querydsl/orgs","repos_url":"https://api.github.com/users/querydsl/repos","events_url":"https://api.github.com/users/querydsl/events{/privacy}","received_events_url":"https://api.github.com/users/querydsl/received_events","type":"Organization","site_admin":false},"repo":{"id":2158982,"name":"querydsl","full_name":"querydsl/querydsl","owner":{"login":"querydsl","id":7044479,"avatar_url":"https://avatars.githubusercontent.com/u/7044479?v=3","gravatar_id":"","url":"https://api.github.com/users/querydsl","html_url":"https://github.com/querydsl","followers_url":"https://api.github.com/users/querydsl/followers","following_url":"https://api.github.com/users/querydsl/following{/other_user}","gists_url":"https://api.github.com/users/querydsl/gists{/gist_id}","starred_url":"https://api.github.com/users/querydsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/querydsl/subscriptions","organizations_url":"https://api.github.com/users/querydsl/orgs","repos_url":"https://api.github.com/users/querydsl/repos","events_url":"https://api.github.com/users/querydsl/events{/privacy}","received_events_url":"https://api.github.com/users/querydsl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/querydsl/querydsl","description":"Unified Queries for Java","fork":false,"url":"https://api.github.com/repos/querydsl/querydsl","forks_url":"https://api.github.com/repos/querydsl/querydsl/forks","keys_url":"https://api.github.com/repos/querydsl/querydsl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/querydsl/querydsl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/querydsl/querydsl/teams","hooks_url":"https://api.github.com/repos/querydsl/querydsl/hooks","issue_events_url":"https://api.github.com/repos/querydsl/querydsl/issues/events{/number}","events_url":"https://api.github.com/repos/querydsl/querydsl/events","assignees_url":"https://api.github.com/repos/querydsl/querydsl/assignees{/user}","branches_url":"https://api.github.com/repos/querydsl/querydsl/branches{/branch}","tags_url":"https://api.github.com/repos/querydsl/querydsl/tags","blobs_url":"https://api.github.com/repos/querydsl/querydsl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/querydsl/querydsl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/querydsl/querydsl/git/refs{/sha}","trees_url":"https://api.github.com/repos/querydsl/querydsl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/querydsl/querydsl/statuses/{sha}","languages_url":"https://api.github.com/repos/querydsl/querydsl/languages","stargazers_url":"https://api.github.com/repos/querydsl/querydsl/stargazers","contributors_url":"https://api.github.com/repos/querydsl/querydsl/contributors","subscribers_url":"https://api.github.com/repos/querydsl/querydsl/subscribers","subscription_url":"https://api.github.com/repos/querydsl/querydsl/subscription","commits_url":"https://api.github.com/repos/querydsl/querydsl/commits{/sha}","git_commits_url":"https://api.github.com/repos/querydsl/querydsl/git/commits{/sha}","comments_url":"https://api.github.com/repos/querydsl/querydsl/comments{/number}","issue_comment_url":"https://api.github.com/repos/querydsl/querydsl/issues/comments{/number}","contents_url":"https://api.github.com/repos/querydsl/querydsl/contents/{+path}","compare_url":"https://api.github.com/repos/querydsl/querydsl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/querydsl/querydsl/merges","archive_url":"https://api.github.com/repos/querydsl/querydsl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/querydsl/querydsl/downloads","issues_url":"https://api.github.com/repos/querydsl/querydsl/issues{/number}","pulls_url":"https://api.github.com/repos/querydsl/querydsl/pulls{/number}","milestones_url":"https://api.github.com/repos/querydsl/querydsl/milestones{/number}","notifications_url":"https://api.github.com/repos/querydsl/querydsl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/querydsl/querydsl/labels{/name}","releases_url":"https://api.github.com/repos/querydsl/querydsl/releases{/id}","created_at":"2011-08-05T06:46:32Z","updated_at":"2015-03-28T21:13:33Z","pushed_at":"2015-03-29T15:10:22Z","git_url":"git://github.com/querydsl/querydsl.git","ssh_url":"git@github.com:querydsl/querydsl.git","clone_url":"https://github.com/querydsl/querydsl.git","svn_url":"https://github.com/querydsl/querydsl","homepage":"http://www.querydsl.com","size":79732,"stargazers_count":486,"watchers_count":486,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":106,"forks":131,"open_issues":106,"watchers":486,"default_branch":"master"}},"base":{"label":"querydsl:master","ref":"master","sha":"a04ff8ec9376afa58cfb95116e5794350b75e2ed","user":{"login":"querydsl","id":7044479,"avatar_url":"https://avatars.githubusercontent.com/u/7044479?v=3","gravatar_id":"","url":"https://api.github.com/users/querydsl","html_url":"https://github.com/querydsl","followers_url":"https://api.github.com/users/querydsl/followers","following_url":"https://api.github.com/users/querydsl/following{/other_user}","gists_url":"https://api.github.com/users/querydsl/gists{/gist_id}","starred_url":"https://api.github.com/users/querydsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/querydsl/subscriptions","organizations_url":"https://api.github.com/users/querydsl/orgs","repos_url":"https://api.github.com/users/querydsl/repos","events_url":"https://api.github.com/users/querydsl/events{/privacy}","received_events_url":"https://api.github.com/users/querydsl/received_events","type":"Organization","site_admin":false},"repo":{"id":2158982,"name":"querydsl","full_name":"querydsl/querydsl","owner":{"login":"querydsl","id":7044479,"avatar_url":"https://avatars.githubusercontent.com/u/7044479?v=3","gravatar_id":"","url":"https://api.github.com/users/querydsl","html_url":"https://github.com/querydsl","followers_url":"https://api.github.com/users/querydsl/followers","following_url":"https://api.github.com/users/querydsl/following{/other_user}","gists_url":"https://api.github.com/users/querydsl/gists{/gist_id}","starred_url":"https://api.github.com/users/querydsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/querydsl/subscriptions","organizations_url":"https://api.github.com/users/querydsl/orgs","repos_url":"https://api.github.com/users/querydsl/repos","events_url":"https://api.github.com/users/querydsl/events{/privacy}","received_events_url":"https://api.github.com/users/querydsl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/querydsl/querydsl","description":"Unified Queries for Java","fork":false,"url":"https://api.github.com/repos/querydsl/querydsl","forks_url":"https://api.github.com/repos/querydsl/querydsl/forks","keys_url":"https://api.github.com/repos/querydsl/querydsl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/querydsl/querydsl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/querydsl/querydsl/teams","hooks_url":"https://api.github.com/repos/querydsl/querydsl/hooks","issue_events_url":"https://api.github.com/repos/querydsl/querydsl/issues/events{/number}","events_url":"https://api.github.com/repos/querydsl/querydsl/events","assignees_url":"https://api.github.com/repos/querydsl/querydsl/assignees{/user}","branches_url":"https://api.github.com/repos/querydsl/querydsl/branches{/branch}","tags_url":"https://api.github.com/repos/querydsl/querydsl/tags","blobs_url":"https://api.github.com/repos/querydsl/querydsl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/querydsl/querydsl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/querydsl/querydsl/git/refs{/sha}","trees_url":"https://api.github.com/repos/querydsl/querydsl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/querydsl/querydsl/statuses/{sha}","languages_url":"https://api.github.com/repos/querydsl/querydsl/languages","stargazers_url":"https://api.github.com/repos/querydsl/querydsl/stargazers","contributors_url":"https://api.github.com/repos/querydsl/querydsl/contributors","subscribers_url":"https://api.github.com/repos/querydsl/querydsl/subscribers","subscription_url":"https://api.github.com/repos/querydsl/querydsl/subscription","commits_url":"https://api.github.com/repos/querydsl/querydsl/commits{/sha}","git_commits_url":"https://api.github.com/repos/querydsl/querydsl/git/commits{/sha}","comments_url":"https://api.github.com/repos/querydsl/querydsl/comments{/number}","issue_comment_url":"https://api.github.com/repos/querydsl/querydsl/issues/comments{/number}","contents_url":"https://api.github.com/repos/querydsl/querydsl/contents/{+path}","compare_url":"https://api.github.com/repos/querydsl/querydsl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/querydsl/querydsl/merges","archive_url":"https://api.github.com/repos/querydsl/querydsl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/querydsl/querydsl/downloads","issues_url":"https://api.github.com/repos/querydsl/querydsl/issues{/number}","pulls_url":"https://api.github.com/repos/querydsl/querydsl/pulls{/number}","milestones_url":"https://api.github.com/repos/querydsl/querydsl/milestones{/number}","notifications_url":"https://api.github.com/repos/querydsl/querydsl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/querydsl/querydsl/labels{/name}","releases_url":"https://api.github.com/repos/querydsl/querydsl/releases{/id}","created_at":"2011-08-05T06:46:32Z","updated_at":"2015-03-28T21:13:33Z","pushed_at":"2015-03-29T15:10:22Z","git_url":"git://github.com/querydsl/querydsl.git","ssh_url":"git@github.com:querydsl/querydsl.git","clone_url":"https://github.com/querydsl/querydsl.git","svn_url":"https://github.com/querydsl/querydsl","homepage":"http://www.querydsl.com","size":79732,"stargazers_count":486,"watchers_count":486,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":106,"forks":131,"open_issues":106,"watchers":486,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/querydsl/querydsl/pulls/1285"},"html":{"href":"https://github.com/querydsl/querydsl/pull/1285"},"issue":{"href":"https://api.github.com/repos/querydsl/querydsl/issues/1285"},"comments":{"href":"https://api.github.com/repos/querydsl/querydsl/issues/1285/comments"},"review_comments":{"href":"https://api.github.com/repos/querydsl/querydsl/pulls/1285/comments"},"review_comment":{"href":"https://api.github.com/repos/querydsl/querydsl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/querydsl/querydsl/pulls/1285/commits"},"statuses":{"href":"https://api.github.com/repos/querydsl/querydsl/statuses/395c5f3dae89022fe2648f4442e3c0bd27573afc"}}}}