You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -492,9 +492,9 @@ object NodeAddress {
492
492
493
493
objectIPAddress {
494
494
defapply(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)
496
496
// 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 :(
498
498
// remove @unchecked if we upgrade to a newer JDK that does not have this pb, or if scalac pattern matching becomes more clever
0 commit comments