supportedMimeTypes) {
- super(supportedMimeTypes);
- }
-
/**
* Create a {@link AvroSchemaMessageConverter}. The converter will be used for the
* provided {@link MimeType}s.
diff --git a/schema-registry/spring-cloud-stream-schema-registry-client/src/main/java/org/springframework/cloud/stream/schema/registry/avro/AvroSchemaRegistryClientMessageConverter.java b/schema-registry/spring-cloud-stream-schema-registry-client/src/main/java/org/springframework/cloud/stream/schema/registry/avro/AvroSchemaRegistryClientMessageConverter.java
index ff45b5b35..a95a9de8a 100644
--- a/schema-registry/spring-cloud-stream-schema-registry-client/src/main/java/org/springframework/cloud/stream/schema/registry/avro/AvroSchemaRegistryClientMessageConverter.java
+++ b/schema-registry/spring-cloud-stream-schema-registry-client/src/main/java/org/springframework/cloud/stream/schema/registry/avro/AvroSchemaRegistryClientMessageConverter.java
@@ -138,25 +138,6 @@ public class AvroSchemaRegistryClientMessageConverter extends AbstractAvroMessag
private boolean ignoreSchemaRegistryServer;
- /**
- * Creates a new instance, configuring it with {@link SchemaRegistryClient} and
- * {@link CacheManager}.
- *
- * @param schemaRegistryClient the {@link SchemaRegistryClient} used to interact with
- * the schema registry server.
- * @param cacheManager instance of {@link CacheManager} to cache parsed schemas. If
- * caching is not required use {@link NoOpCacheManager}
- */
- @Deprecated
- public AvroSchemaRegistryClientMessageConverter(
- SchemaRegistryClient schemaRegistryClient, CacheManager cacheManager) {
- super(Collections.singletonList(DEFAULT_AVRO_MIME_TYPE), defaultAvroSchemaServiceManager);
- Assert.notNull(schemaRegistryClient, "cannot be null");
- Assert.notNull(cacheManager, "'cacheManager' cannot be null");
- this.schemaRegistryClient = schemaRegistryClient;
- this.cacheManager = cacheManager;
- }
-
/**
* Creates a new instance, configuring it with {@link SchemaRegistryClient} and
* {@link CacheManager}.
diff --git a/schema-registry/spring-cloud-stream-schema-registry-client/src/test/java/org/springframework/cloud/stream/schema/avro/AvroSchemaServiceManagerTests.java b/schema-registry/spring-cloud-stream-schema-registry-client/src/test/java/org/springframework/cloud/stream/schema/avro/AvroSchemaServiceManagerTests.java
index 3e20fdb6e..033a8caba 100644
--- a/schema-registry/spring-cloud-stream-schema-registry-client/src/test/java/org/springframework/cloud/stream/schema/avro/AvroSchemaServiceManagerTests.java
+++ b/schema-registry/spring-cloud-stream-schema-registry-client/src/test/java/org/springframework/cloud/stream/schema/avro/AvroSchemaServiceManagerTests.java
@@ -19,6 +19,8 @@ package org.springframework.cloud.stream.schema.avro;
import java.io.File;
import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -153,17 +155,7 @@ class AvroSchemaServiceManagerTests {
@Test
public void avroSchemaMessageConverter() {
- AvroSchemaMessageConverter converter = new AvroSchemaMessageConverter();
MimeType mimeType = new MimeType("application", "avro");
- assertThat(mimeType).isEqualTo(converter.getSupportedMimeTypes().get(0));
-
- AvroSchemaMessageConverter converter2 = new AvroSchemaMessageConverter(mimeType);
- assertThat(mimeType).isEqualTo(converter2.getSupportedMimeTypes().get(0));
-
- AvroSchemaMessageConverter converter3 =
- new AvroSchemaMessageConverter(Lists.newArrayList(mimeType));
- assertThat(mimeType).isEqualTo(converter3.getSupportedMimeTypes().get(0));
-
AvroSchemaServiceManager manager = new AvroSchemaServiceManagerImpl();
AvroSchemaMessageConverter converter4 = new AvroSchemaMessageConverter(manager);
assertThat(mimeType).isEqualTo(converter4.getSupportedMimeTypes().get(0));
diff --git a/schema-registry/spring-cloud-stream-schema-registry-core/src/main/java/org/springframework/cloud/stream/schema/registry/controllers/ServerController.java b/schema-registry/spring-cloud-stream-schema-registry-core/src/main/java/org/springframework/cloud/stream/schema/registry/controllers/ServerController.java
index ebf0d5b32..579e2f106 100644
--- a/schema-registry/spring-cloud-stream-schema-registry-core/src/main/java/org/springframework/cloud/stream/schema/registry/controllers/ServerController.java
+++ b/schema-registry/spring-cloud-stream-schema-registry-core/src/main/java/org/springframework/cloud/stream/schema/registry/controllers/ServerController.java
@@ -132,27 +132,6 @@ public class ServerController {
return new ResponseEntity<>(schema.get(), HttpStatus.OK);
}
- /**
- *
- * Find by {@link Schema#getSubject() subject} and {@link Schema#getFormat() format}.
- *
- * @param subject the {@link Schema#getSubject() subject}, must not be
- * {@literal null}.
- * @param format the {@link Schema#getFormat() format}, must not be {@literal null}.
- * @return An {@link HttpStatus#OK} response populated with the list of {@link Schema
- * Schemas}, in ascending order by {@link Schema#getVersion() version}, that matched
- * the supplied {@link Schema#getSubject() subject} and {@link Schema#getFormat()
- * format}.
- * @deprecated use {@link #findBySubjectAndFormat(String, String)}
- * @see GH-1760
- */
- @Deprecated
- public ResponseEntity> findBySubjectAndVersion(@PathVariable("subject") String subject,
- @PathVariable("format") String format) {
- return findBySubjectAndFormatOrderByVersionAsc(subject, format);
- }
-
/**
* Find by {@link Schema#getSubject() subject} and {@link Schema#getFormat() format}.
*
diff --git a/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java b/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java
index 1dc630367..7bbd30c95 100644
--- a/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java
+++ b/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java
@@ -459,7 +459,7 @@ class SchemaRegistryServerAvroTests {
assertThat(schemas).hasSize(2);
final ResponseEntity> findBySubjectAndVersionResponseEntity = this.serverController
- .findBySubjectAndVersion(subject, format);
+ .findBySubjectAndFormat(subject, format);
assertThat(findBySubjectAndVersionResponseEntity.getStatusCode().is2xxSuccessful()).isTrue();