Skip to content

Commit

Permalink
make id() consistent with other uses are the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kroepke committed Feb 5, 2016
1 parent c616673 commit 409c2d0
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -34,7 +34,7 @@ public abstract class PipelineStreamAssignment {
@Nullable
@Id
@ObjectId
public abstract String id();
public abstract String _id();

@JsonProperty
public abstract String streamId();
Expand All @@ -43,11 +43,11 @@ public abstract class PipelineStreamAssignment {
public abstract Set<String> pipelineIds();

@JsonCreator
public static PipelineStreamAssignment create(@Id @ObjectId @JsonProperty("_id") @Nullable String id,
public static PipelineStreamAssignment create(@Id @ObjectId @JsonProperty("id") @Nullable String _id,
@JsonProperty("stream_id") String streamId,
@JsonProperty("pipeline_ids") Set<String> pipelineIds) {
return builder()
.id(id)
._id(_id)
.streamId(streamId)
.pipelineIds(pipelineIds)
.build();
Expand All @@ -63,7 +63,7 @@ public static Builder builder() {
public abstract static class Builder {
public abstract PipelineStreamAssignment build();

public abstract Builder id(String id);
public abstract Builder _id(String _id);

public abstract Builder streamId(String streamId);

Expand Down

0 comments on commit 409c2d0

Please sign in to comment.