Skip to content

Commit

Permalink
Change all action constructors' accessor level to protected - fixes s…
Browse files Browse the repository at this point in the history
  • Loading branch information
kramer committed Jun 28, 2015
1 parent 5e272bb commit f4c5abc
Show file tree
Hide file tree
Showing 51 changed files with 54 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class GetSettings extends GenericResultAbstractAction {

private GetSettings(Builder builder) {
protected GetSettings(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/cluster/Health.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class Health extends GenericResultAbstractAction {

public Health(Builder builder) {
protected Health(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public class NodesHotThreads extends GenericResultAbstractAction {

public NodesHotThreads(Builder builder) {
protected NodesHotThreads(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class NodesInfo extends GenericResultAbstractAction {

public NodesInfo(Builder builder) {
protected NodesInfo(Builder builder) {
super(builder);
setPathToResult("nodes");
setURI(buildURI());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class NodesShutdown extends GenericResultAbstractAction {

public NodesShutdown(Builder builder) {
protected NodesShutdown(Builder builder) {
super(builder);
setPathToResult("nodes");
setURI(buildURI());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class NodesStats extends GenericResultAbstractAction {

public NodesStats(Builder builder) {
protected NodesStats(Builder builder) {
super(builder);
setPathToResult("nodes");
setURI(buildURI());
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/cluster/State.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class State extends GenericResultAbstractAction {

public State(Builder builder) {
protected State(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
public class UpdateSettings extends GenericResultAbstractAction {

private UpdateSettings(Builder builder) {
protected UpdateSettings(Builder builder) {
super(builder);
setURI(buildURI());
this.payload = builder.source;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Bulk.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Bulk extends AbstractAction<BulkResult> {
final static Logger log = LoggerFactory.getLogger(Bulk.class);
protected Collection<BulkableAction> bulkableActions;

public Bulk(Builder builder) {
protected Bulk(Builder builder) {
super(builder);
indexName = builder.defaultIndex;
typeName = builder.defaultType;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Count.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public class Count extends AbstractAction<CountResult> {

public Count(Builder builder) {
protected Count(Builder builder) {
super(builder);

this.payload = builder.query;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Delete.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public class Delete extends GenericResultAbstractDocumentTargetedAction implements BulkableAction<JestResult> {

private Delete(Builder builder) {
protected Delete(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public class DeleteByQuery extends GenericResultAbstractAction {

public DeleteByQuery(Builder builder) {
protected DeleteByQuery(Builder builder) {
super(builder);

this.payload = builder.query;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Explain.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class Explain extends GenericResultAbstractDocumentTargetedAction {

private Explain(Builder builder) {
protected Explain(Builder builder) {
super(builder);
setURI(buildURI());
this.payload = builder.query;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Get.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class Get extends GenericResultAbstractDocumentTargetedAction {

private Get(Builder builder) {
protected Get(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Index.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
public class Index extends GenericResultAbstractDocumentTargetedAction implements BulkableAction<JestResult> {

private Index(Builder builder) {
protected Index(Builder builder) {
super(builder);

this.payload = builder.source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class MoreLikeThis extends GenericResultAbstractDocumentTargetedAction {

private MoreLikeThis(Builder builder) {
protected MoreLikeThis(Builder builder) {
super(builder);

this.payload = builder.query;
Expand Down
4 changes: 2 additions & 2 deletions jest-common/src/main/java/io/searchbox/core/MultiGet.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ protected MultiGet(AbstractAction.Builder builder) {
setPathToResult("docs/_source");
}

public MultiGet(Builder.ByDoc builder) {
protected MultiGet(Builder.ByDoc builder) {
this((AbstractAction.Builder) builder);
this.payload = ImmutableMap.of("docs", docsToMaps(builder.docs));
}

public MultiGet(Builder.ById builder) {
protected MultiGet(Builder.ById builder) {
this((AbstractAction.Builder) builder);
this.payload = ImmutableMap.of("ids", builder.ids);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class MultiSearch extends GenericResultAbstractAction {

private Collection<Search> searches;

public MultiSearch(Builder builder) {
protected MultiSearch(Builder builder) {
super(builder);

this.searches = builder.searchList;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Percolate.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public class Percolate extends GenericResultAbstractAction {

public Percolate(Builder builder) {
protected Percolate(Builder builder) {
super(builder);

this.indexName = builder.index;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Search extends AbstractAction<SearchResult> {
private String query;
private List<Sort> sortList = new LinkedList<Sort>();

private Search(Builder builder) {
protected Search(Builder builder) {
super(builder);

this.query = builder.query;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SearchScroll extends GenericResultAbstractAction {
static final int MAX_SCROLL_ID_LENGTH = 1900;
private final String restMethodName;

public SearchScroll(Builder builder) {
protected SearchScroll(Builder builder) {
super(builder);

if(builder.getScrollId().length() > MAX_SCROLL_ID_LENGTH) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public class SearchShards extends GenericResultAbstractAction {

private SearchShards(Builder builder) {
protected SearchShards(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Suggest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class Suggest extends AbstractAction<SuggestResult> {

private Suggest(final Builder builder) {
protected Suggest(final Builder builder) {
super(builder);

this.payload = builder.getQuery();
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Update.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public class Update extends GenericResultAbstractDocumentTargetedAction implements BulkableAction<JestResult> {

private Update(Builder builder) {
protected Update(Builder builder) {
super(builder);

this.payload = builder.payload;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/core/Validate.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class Validate extends GenericResultAbstractAction {

private Validate(Builder builder) {
protected Validate(Builder builder) {
super(builder);

this.indexName = builder.index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public class Analyze extends GenericResultAbstractAction {

public Analyze(Builder builder) {
protected Analyze(Builder builder) {
super(builder);

this.indexName = builder.index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class ClearCache extends GenericResultAbstractAction {

public ClearCache(Builder builder) {
protected ClearCache(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
public class CloseIndex extends GenericResultAbstractAction {

public CloseIndex(Builder builder) {
protected CloseIndex(Builder builder) {
super(builder);

this.indexName = builder.index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class CreateIndex extends GenericResultAbstractAction {

private boolean isCreateOp = false;

public CreateIndex(Builder builder) {
protected CreateIndex(Builder builder) {
super(builder);

this.indexName = builder.index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
public class DeleteIndex extends GenericResultAbstractAction {

public DeleteIndex(Builder builder) {
protected DeleteIndex(Builder builder) {
super(builder);
indexName = builder.index;
typeName = builder.type;
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/indices/Flush.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class Flush extends GenericResultAbstractAction {

private Flush(Builder builder) {
protected Flush(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public class IndicesExists extends GenericResultAbstractAction {

public IndicesExists(Builder builder) {
protected IndicesExists(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
public class OpenIndex extends GenericResultAbstractAction {

public OpenIndex(Builder builder) {
protected OpenIndex(Builder builder) {
super(builder);
this.indexName = builder.index;
setURI(buildURI());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class Optimize extends GenericResultAbstractAction {

private Optimize(Builder builder) {
protected Optimize(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class Refresh extends GenericResultAbstractAction {

private Refresh(Builder builder) {
protected Refresh(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/indices/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public class Stats extends GenericResultAbstractAction {

private Stats(Builder builder) {
protected Stats(Builder builder) {
super(builder);
indexName = builder.getJoinedIndices();

Expand Down
2 changes: 1 addition & 1 deletion jest-common/src/main/java/io/searchbox/indices/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class Status extends GenericResultAbstractAction {

private Status(Builder builder) {
protected Status(Builder builder) {
super(builder);
this.indexName = builder.getJoinedIndices();
setURI(buildURI());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*/
public class AddAliasMapping extends AliasMapping {

private AddAliasMapping() {
protected AddAliasMapping() {
}

private AddAliasMapping(Builder builder) {
protected AddAliasMapping(Builder builder) {
this.indices.addAll(builder.indices);
this.alias = builder.alias;
this.filter = builder.filter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
public class GetAliases extends GenericResultAbstractAction {

private GetAliases(Builder builder) {
protected GetAliases(Builder builder) {
super(builder);
setURI(buildURI());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
public class ModifyAliases extends GenericResultAbstractAction {

private ModifyAliases(Builder builder) {
protected ModifyAliases(Builder builder) {
super(builder);

List<Map> actions = new LinkedList<Map>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*/
public class RemoveAliasMapping extends AliasMapping {

private RemoveAliasMapping() {
protected RemoveAliasMapping() {
}

private RemoveAliasMapping(Builder builder) {
protected RemoveAliasMapping(Builder builder) {
this.indices.addAll(builder.indices);
this.alias = builder.alias;
this.filter = builder.filter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public class DeleteMapping extends GenericResultAbstractAction {

public DeleteMapping(Builder builder) {
protected DeleteMapping(Builder builder) {
super(builder);

this.indexName = builder.index;
Expand Down
Loading

0 comments on commit f4c5abc

Please sign in to comment.