Skip to content

Commit 2805664

Browse files
committed
Fixup: fix typo
1 parent 5dc600d commit 2805664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ object NodeAddress {
492492

493493
object IPAddress {
494494
def apply(inetAddress: InetAddress, port: Int): IPAddress = (inetAddress: @unchecked) match {
495-
// we need the @unchecked annotation to suppress a "matching not exhaustive". Before JDK21, InetAddress was a regular so scalac would not check anything (it only checks sealed patterns)
495+
// we need the @unchecked annotation to suppress a "matching not exhaustive". Before JDK21, InetAddress was a regular class so scalac would not check anything (it only checks sealed patterns)
496496
// with JDK21 InetAddress is defined as `public sealed class InetAddress implements Serializable permits Inet4Address, Inet6Address` and scalac complains because in theory there could be
497-
// an InetAddress() instance, though its not possible in practice because the constructor is package private :(
497+
// an InetAddress() instance, though it is not possible in practice because the constructor is package private :(
498498
// remove @unchecked if we upgrade to a newer JDK that does not have this pb, or if scalac pattern matching becomes more clever
499499
case address: Inet4Address => IPv4(address, port)
500500
case address: Inet6Address => IPv6(address, port)

0 commit comments

Comments
 (0)