You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/04/21 07:43:41 UTC
[groovy] 02/02: Cleanup code to trigger CI builds of GitHub Actions
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit bf09d58f9c9e12cfe486ec34211d8283ac5508e6
Author: Daniel Sun <su...@apache.org>
AuthorDate: Wed Apr 21 15:20:18 2021 +0800
Cleanup code to trigger CI builds of GitHub Actions
(cherry picked from commit e8ee293cdf6b015adc44500bc71e59485e0dde27)
---
.../groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy
index c029884..68b3f9d 100644
--- a/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy
+++ b/subprojects/groovy-jmx/src/test/groovy/groovy/jmx/builder/JmxClientConnectorFactoryTest.groovy
@@ -77,12 +77,12 @@ class JmxClientConnectorFactoryTest extends GroovyTestCase {
static String getHostAddress() {
try {
- Enumeration<NetworkInterface> allNetInterfaces = NetworkInterface.getNetworkInterfaces();
+ Enumeration<NetworkInterface> allNetInterfaces = NetworkInterface.getNetworkInterfaces()
while (allNetInterfaces.hasMoreElements()) {
- NetworkInterface netInterface = (NetworkInterface) allNetInterfaces.nextElement();
- Enumeration<InetAddress> addresses = netInterface.getInetAddresses();
+ NetworkInterface netInterface = (NetworkInterface) allNetInterfaces.nextElement()
+ Enumeration<InetAddress> addresses = netInterface.getInetAddresses()
while (addresses.hasMoreElements()) {
- InetAddress ip = (InetAddress) addresses.nextElement();
+ InetAddress ip = (InetAddress) addresses.nextElement()
if (ip != null
&& ip instanceof Inet4Address
&& !ip.isLoopbackAddress()