Skip to content

Commit f714b16

Browse files
committed
Apply code formatting
1 parent 19e359c commit f714b16

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/org/xbill/DNS/hosts/HostsFileParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
*/
3030
@Slf4j
3131
public final class HostsFileParser {
32-
private final int MAX_FULL_CACHE_FILE_SIZE_BYTES = Integer.parseInt(
33-
System.getProperty("dnsjava.hostsfile.max_size_bytes", "16384"));
32+
private final int MAX_FULL_CACHE_FILE_SIZE_BYTES =
33+
Integer.parseInt(System.getProperty("dnsjava.hostsfile.max_size_bytes", "16384"));
3434

3535
private final Map<String, InetAddress> hostsCache = new HashMap<>();
3636
private final Path path;

src/test/java/org/xbill/DNS/hosts/HostsFileParserTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ void testBigFileCompletelyCachedA() throws IOException {
176176
try {
177177
System.setProperty("dnsjava.hostsfile.max_size_bytes", 1024 * 1024 * 1024 + "");
178178
HostsFileParser hostsFileParser = generateLargeHostsFile("testBigFileCompletelyCachedA");
179-
hostsFileParser.getAddressForHost(Name.fromConstantString("localhost-10."), Type.A)
180-
.orElseThrow(() -> new IllegalStateException("Host entry not found"));
179+
hostsFileParser
180+
.getAddressForHost(Name.fromConstantString("localhost-10."), Type.A)
181+
.orElseThrow(() -> new IllegalStateException("Host entry not found"));
181182
assertEquals(1280, hostsFileParser.cacheSize());
182183
} finally {
183184
System.clearProperty("dnsjava.hostsfile.max_size_bytes");

0 commit comments

Comments
 (0)