diff --git a/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java b/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java index 1385b0c67e..65136dc0a4 100644 --- a/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java @@ -1,7 +1,6 @@ package org.kohsuke.github; import java.io.IOException; -import java.util.Locale; import org.apache.commons.lang.StringUtils; @@ -15,7 +14,7 @@ public class GHCommitSearchBuilder extends GHSearchBuilder { /*package*/ GHCommitSearchBuilder(GitHub root) { super(root,CommitSearchResult.class); - req = req.withPreview(Previews.CLOAK); + req.withPreview(Previews.CLOAK); } /** diff --git a/src/main/java/org/kohsuke/github/GHQueryBuilder.java b/src/main/java/org/kohsuke/github/GHQueryBuilder.java index 5eca4278a1..bb85fbbe95 100644 --- a/src/main/java/org/kohsuke/github/GHQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHQueryBuilder.java @@ -7,7 +7,7 @@ */ public abstract class GHQueryBuilder { protected final GitHub root; - protected Requester req; + protected final Requester req; /*package*/ GHQueryBuilder(GitHub root) { this.root = root;