Skip to content

Commit

Permalink
allegro#1569 | Import order fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansobolewski committed Oct 18, 2023
1 parent 23b4ba8 commit 120ea84
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package pl.allegro.tech.hermes.common.schema;

import java.util.List;
import java.util.Optional;
import java.util.function.Supplier;
import pl.allegro.tech.hermes.api.RawSchemaWithMetadata;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.common.metric.MetricsFacade;
Expand All @@ -12,6 +9,10 @@
import pl.allegro.tech.hermes.schema.SchemaId;
import pl.allegro.tech.hermes.schema.SchemaVersion;

import java.util.List;
import java.util.Optional;
import java.util.function.Supplier;

public class ReadMetricsTrackingRawSchemaClient implements RawSchemaClient {
private final MetricsFacade metricsFacade;
protected final RawSchemaClient rawSchemaClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package pl.allegro.tech.hermes.schema;

import java.util.List;
import java.util.Optional;
import pl.allegro.tech.hermes.api.RawSchemaWithMetadata;
import pl.allegro.tech.hermes.api.TopicName;

import java.util.List;
import java.util.Optional;

public interface RawSchemaClient {

Optional<RawSchemaWithMetadata> getRawSchemaWithMetadata(TopicName topic, SchemaVersion version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pl.allegro.tech.hermes.api.RawSchema;
Expand All @@ -21,6 +15,13 @@
import pl.allegro.tech.hermes.schema.SubjectNamingStrategy;
import pl.allegro.tech.hermes.schema.resolver.SchemaRepositoryInstanceResolver;

import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;

/**
* This implementation of RawSchemaClient is compatible with Confluent Schema Registry API
*/
Expand Down

0 comments on commit 120ea84

Please sign in to comment.