Skip to content

Commit

Permalink
Thrift: Rename Status.CONTINUE to Status.CONT (reserved word), closes e…
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Oct 8, 2010
1 parent 6314c24 commit ee2fabb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/transport/thrift/elasticsearch.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct RestRequest {
}

enum Status {
CONTINUE = 100,
CONT = 100,
SWITCHING_PROTOCOLS = 101,
OK = 200,
CREATED = 201,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.apache.thrift.TEnum;

public enum Status implements TEnum {
CONTINUE(100),
CONT(100),
SWITCHING_PROTOCOLS(101),
OK(200),
CREATED(201),
Expand Down Expand Up @@ -75,7 +75,7 @@ public int getValue() {
public static Status findByValue(int value) {
switch (value) {
case 100:
return CONTINUE;
return CONT;
case 101:
return SWITCHING_PROTOCOLS;
case 200:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private org.elasticsearch.thrift.RestResponse convert(RestResponse response) thr
private Status getStatus(RestResponse.Status status) {
switch (status) {
case CONTINUE:
return Status.CONTINUE;
return Status.CONT;
case SWITCHING_PROTOCOLS:
return Status.SWITCHING_PROTOCOLS;
case OK:
Expand Down

0 comments on commit ee2fabb

Please sign in to comment.