Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excavator: Upgrades Baseline to the latest version #557

Merged
merged 12 commits into from
Oct 14, 2019
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ buildscript {
classpath 'com.netflix.nebula:gradle-info-plugin:5.0.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:nebula-publishing-plugin:13.4.1'
classpath 'com.palantir.baseline:gradle-baseline-java:2.3.0'
classpath 'com.palantir.baseline:gradle-baseline-java:2.4.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:1.12.4'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ public static Bytes from(ByteBuffer buffer) {

static final class Serializer extends JsonSerializer<Bytes> {
@Override
public void serialize(Bytes value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
public void serialize(Bytes value, JsonGenerator gen, SerializerProvider unused) throws IOException {
gen.writeBinary(value.safe);
}
}

static final class Deserializer extends JsonDeserializer<Bytes> {
@Override
public Bytes deserialize(JsonParser parser, DeserializationContext ctxt) throws IOException {
public Bytes deserialize(JsonParser parser, DeserializationContext unused) throws IOException {
// Avoid making a copy of the value from jackson
return new Bytes(parser.getBinaryValue());
}
Expand Down