@@ -225,7 +225,7 @@ object Codec extends CodecCompanionCompat {
225225 */
226226 implicit final val bytes : Codec .Aux [Avro .Bytes , Array [Byte ]] =
227227 Codec
228- .instance [Avro .Bytes , Array [Byte ]](
228+ .instanceInternal [Avro .Bytes , Array [Byte ]](
229229 SchemaBuilder .builder().bytesType(),
230230 ByteBuffer .wrap(_).asRight,
231231 (value, schema) => {
@@ -347,7 +347,7 @@ object Codec extends CodecCompanionCompat {
347347 */
348348 implicit final val double : Codec .Aux [Avro .Double , Double ] =
349349 Codec
350- .instance [Avro .Double , Double ](
350+ .instanceInternal [Avro .Double , Double ](
351351 SchemaBuilder .builder().doubleType(),
352352 _.asRight,
353353 (value, schema) => {
@@ -546,7 +546,7 @@ object Codec extends CodecCompanionCompat {
546546 */
547547 implicit final val float : Codec .Aux [Avro .Float , Float ] =
548548 Codec
549- .instance [Avro .Float , Float ](
549+ .instanceInternal [Avro .Float , Float ](
550550 SchemaBuilder .builder().floatType(),
551551 _.asRight,
552552 (value, schema) => {
@@ -603,7 +603,7 @@ object Codec extends CodecCompanionCompat {
603603 decode : (Any , Schema ) => Either [AvroError , A ]
604604 ): Codec .Aux [AvroType0 , A ] = instanceInternal(schema, encode, decode)
605605
606- private def instance [AvroType0 , A ](
606+ private def instanceInternal [AvroType0 , A ](
607607 schema : Schema ,
608608 encode : A => Either [AvroError , AvroType0 ],
609609 decode : (Any , Schema ) => Either [AvroError , A ]
@@ -641,7 +641,7 @@ object Codec extends CodecCompanionCompat {
641641 encode : A => Either [AvroError , AvroType ],
642642 decode : PartialFunction [(Any , Schema ), Either [AvroError , A ]]
643643 ): Codec .Aux [AvroType , A ] =
644- instance (
644+ instanceInternal (
645645 schema,
646646 encode(_),
647647 (value, writerSchema) => {
@@ -778,7 +778,7 @@ object Codec extends CodecCompanionCompat {
778778 */
779779 implicit lazy val long : Codec .Aux [Avro .Long , Long ] =
780780 Codec
781- .instance [Avro .Long , Long ](
781+ .instanceInternal [Avro .Long , Long ](
782782 SchemaBuilder .builder().longType(),
783783 _.asRight,
784784 (value, schema) => {
@@ -1074,7 +1074,7 @@ object Codec extends CodecCompanionCompat {
10741074 */
10751075 implicit final val string : Codec .Aux [Avro .String , String ] =
10761076 Codec
1077- .instance [Avro .String , String ](
1077+ .instanceInternal [Avro .String , String ](
10781078 SchemaBuilder .builder().stringType(),
10791079 Avro .String (_).asRight,
10801080 (value, schema) => {
0 commit comments