Skip to content

Commit

Permalink
formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed Jan 22, 2018
1 parent 2ebc276 commit 255fed6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api-frontend/src/main/java/io/seldon/apife/pb/QuantityUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public static class QuantityParser implements TypeParser {
@Override
public void merge(JsonElement json, Builder builder) throws InvalidProtocolBufferException {
if (json instanceof JsonPrimitive) {
JsonPrimitive primitive = (JsonPrimitive) json;
if (primitive.isString())
{
Quantity.Builder b = Quantity.newBuilder().setString(primitive.getAsString());
builder.mergeFrom(b.build().toByteArray());
}
else throw new InvalidProtocolBufferException("Can't decode io.kubernetes.client.proto.resource.Quantity from "+json.toString());
JsonPrimitive primitive = (JsonPrimitive) json;
if (primitive.isString())
{
Quantity.Builder b = Quantity.newBuilder().setString(primitive.getAsString());
builder.mergeFrom(b.build().toByteArray());
}
else throw new InvalidProtocolBufferException("Can't decode io.kubernetes.client.proto.resource.Quantity from "+json.toString());
}
}

Expand Down

0 comments on commit 255fed6

Please sign in to comment.