diff --git a/README.md b/README.md index 6edc0987f..bc2417476 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.28.0') +implementation platform('com.google.cloud:libraries-bom:26.29.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java index 6c2d31efe..204867006 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java @@ -93,7 +93,7 @@ public static void subscribeWithAvroSchemaRevisionsExample( Schema schema = schemaServiceClient.getSchema(name + "@" + revision); org.apache.avro.Schema avroSchema = new org.apache.avro.Schema.Parser().parse(schema.getDefinition()); - reader = new SpecificDatumReader(State.getClassSchema(), avroSchema); + reader = new SpecificDatumReader(avroSchema, State.getClassSchema()); synchronized (revisionReaders) { revisionReaders.put(revision, reader); }