[Java] Expose the ProbabilisticScorer from the CMC correctly
authorMatt Corallo <git@bluematt.me>
Wed, 8 Mar 2023 05:04:14 +0000 (05:04 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 8 Mar 2023 05:13:01 +0000 (05:13 +0000)
commitb479a721c55c876e716319c5074c7d150a59aa5c
treefd327be2323ae69f421553ad34a7d28c7f463baa
parenta2d6728708f5a6de9f8ce28713fe49f2c5d9259b
[Java] Expose the ProbabilisticScorer from the CMC correctly

We'd previously exposed a race-y version of the ProbabilisticScorer
where its held within a lock but also made public with no threading
requirements placed on it.

This resolves that issue by exposing it via a wrapper that holds
the score lock.
src/main/java/org/ldk/batteries/ChannelManagerConstructor.java
src/test/java/org/ldk/HumanObjectPeerTest.java