Skip to content

Commit

Permalink
Fix possible switch fall through
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Sep 18, 2024
1 parent 69d2891 commit 42619eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.io.IOException;

/**
* FetchSearchResult child which implements serde operations as protobuf.
* FetchSearchResult which leverages protobuf for transport layer serialization.
* @opensearch.internal
*/
public class FetchSearchResultProtobuf extends FetchSearchResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public static Object missingValueFromProto(MissingValueProto proto) {
case INT_VAL:
if (proto.getIntVal() == 1) { return SortField.STRING_FIRST; }
if (proto.getIntVal() == 2) { return SortField.STRING_LAST; }
throw new TransportSerializationException("Unexpected sortField missingValue (INT_VAL): " + proto.getIntVal());
case OBJ_VAL:
return genericObjectFromProto(proto.getObjVal());
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import static org.opensearch.transport.protobuf.ProtoSerDeHelpers.searchShardTargetToProto;

/**
* Serialization/Deserialization implementations for SearchHit.
* SearchHit which leverages protobuf for transport layer serialization.
* @opensearch.internal
*/
public class SearchHitProtobuf extends SearchHit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import static org.opensearch.transport.protobuf.SearchHitProtobuf.sortValueToProto;

/**
* SearchHits child which implements serde operations as protobuf.
* SearchHits which leverages protobuf for transport layer serialization.
* @opensearch.internal
*/
public class SearchHitsProtobuf extends SearchHits {
Expand Down

0 comments on commit 42619eb

Please sign in to comment.