.asJava
is more consistent with the more familiar JavaConverters
[error] /home/ross/src/cats-stm/core/src/main/scala/io/github/timwspence/cats/stm/STM.scala:180:44: type mismatch;
[error] found : <error> => <error>
[error] required: ?{def asJava: ?}
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error] both method enrichAsJavaConsumer in trait Priority1FunctionConverters of type [T](sf: T => Unit)scala.compat.java8.functionConverterImpls.RichFunction1AsConsumer[T]
[error] and method enrichAsJavaIntFunction in trait Priority1FunctionConverters of type [R](sf: Int => R)scala.compat.java8.functionConverterImpls.RichFunction1AsIntFunction[R]
[error] are possible conversion functions from <error> => <error> to ?{def asJava: ?}
[error] entry.tvar.pending.updateAndGet((m => m + (txId -> pending)).asJava)
TimWSpence/cats-stm
to this file