File tree Expand file tree Collapse file tree
main/java/org/xbill/DNS/hosts
test/java/org/xbill/DNS/hosts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 */
3030@ Slf4j
3131public 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 ;
Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments