File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/main/scala/nl/gn0s1s/pureconfig/module/javanet Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414 strategy :
1515 matrix :
1616 scala-version : [2.13.8]
17- java-version : [8, 11]
17+ java-version : [8, 11, 17 ]
1818 steps :
1919 - uses : actions/checkout@v2
2020 - uses : actions/setup-java@v2
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ package object javanet {
4343 }
4444
4545 implicit val inetSocketAddressConfigConvert : ConfigConvert [InetSocketAddress ] =
46- ConfigConvert .viaNonEmptyString(s => parseHostAndPort(s), _.toString )
46+ ConfigConvert .viaNonEmptyString(s => parseHostAndPort(s), address => s " ${address.getHostString} : ${address.getPort} " )
4747
4848 implicit val inetSocketAddressListConfigConvert : ConfigConvert [Seq [InetSocketAddress ]] =
4949 ConfigConvert .viaNonEmptyString(
@@ -55,6 +55,8 @@ package object javanet {
5555 case _ =>
5656 Left (CannotConvert (s, " Seq[InetSocketAddress]" , " Cannot parse string into hosts and ports" ))
5757 },
58- _.mkString(" ," )
58+ _.map { address =>
59+ s " ${address.getHostString}: ${address.getPort}"
60+ }.mkString(" ," )
5961 )
6062}
You can’t perform that action at this time.
0 commit comments