Skip to content

Commit bc02849

Browse files
committed
WIP 343 Drop unnecessary semicolons in Groovy code
1 parent 16a29cb commit bc02849

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,24 @@ class BrokenHttpLinksCheckerSpec extends Specification {
5656
// Custom method to register the DNS resolver
5757
private void registerCustomDnsResolver() {
5858
try {
59-
Field implField = InetAddress.class.getDeclaredField("impl");
60-
implField.setAccessible(true);
61-
Object currentImpl = implField.get(null);
59+
Field implField = InetAddress.class.getDeclaredField("impl")
60+
implField.setAccessible(true)
61+
Object currentImpl = implField.get(null)
6262

6363
Proxy newImpl = (Proxy) Proxy.newProxyInstance(
6464
currentImpl.getClass().getClassLoader(),
6565
currentImpl.getClass().getInterfaces(),
6666
(proxy, method, args) -> {
6767
if ("lookupAllHostAddr".equals(method.getName()) && args.length == 1 && args[0] instanceof String) {
68-
return customHostNameResolver.resolve((String) args[0]);
68+
return customHostNameResolver.resolve((String) args[0])
6969
}
70-
return method.invoke(currentImpl, args);
70+
return method.invoke(currentImpl, args)
7171
}
72-
);
72+
)
7373

74-
implField.set(null, newImpl);
74+
implField.set(null, newImpl)
7575
} catch (Exception e) {
76-
throw new RuntimeException("Failed to register custom DNS resolver", e);
76+
throw new RuntimeException("Failed to register custom DNS resolver", e)
7777
}
7878
}
7979

0 commit comments

Comments
 (0)