diff --git a/lang/java/avro/src/main/java/org/apache/avro/Conversion.java b/lang/java/avro/src/main/java/org/apache/avro/Conversion.java index 934672e7d30..a257b2f38af 100644 --- a/lang/java/avro/src/main/java/org/apache/avro/Conversion.java +++ b/lang/java/avro/src/main/java/org/apache/avro/Conversion.java @@ -21,9 +21,7 @@ import java.nio.ByteBuffer; import java.util.Collection; import java.util.Map; -import java.util.ServiceLoader; -import org.apache.avro.generic.GenericData; import org.apache.avro.generic.GenericEnumSymbol; import org.apache.avro.generic.GenericFixed; import org.apache.avro.generic.IndexedRecord; @@ -33,11 +31,12 @@ *

* Instances of this class can be added to GenericData to convert a logical type * to a particular representation. This can be done manually, using - * {@link GenericData#addLogicalTypeConversion(Conversion)}, or automatically. - * This last option uses the Java {@link ServiceLoader}, and requires the - * implementation to be a public class with a public no-arg constructor, be - * named in a file called {@code /META-INF/services/org.apache.avro.Conversion}, - * and both must available in the classpath. + * {@link org.apache.avro.generic.GenericData#addLogicalTypeConversion(Conversion)}, + * or automatically. This last option uses the Java + * {@link java.util.ServiceLoader}, and requires the implementation to be a + * public class with a public no-arg constructor, be named in a file called + * {@code /META-INF/services/org.apache.avro.Conversion}, and both must + * available in the classpath. *

* Implementations must provide: *