Skip to content

Commit 4e2d8a0

Browse files
committed
Increase test coverage in LookupTest
1 parent 9bc9f66 commit 4e2d8a0

File tree

2 files changed

+332
-66
lines changed

2 files changed

+332
-66
lines changed

src/main/java/org/xbill/DNS/config/ResolverConfigProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ public interface ResolverConfigProvider {
1717

1818
/**
1919
* Gets the threshold for the number of dots which must appear in a name before it is considered
20-
* absolute. The default is {@code -1}, meaning this provider does not supported reading the ndots
21-
* configuration.
20+
* absolute. If the interface implementation does not override this, the default implementation
21+
* returns 1.
2222
*/
2323
default int ndots() {
24-
return -1;
24+
return 1;
2525
}
2626

2727
/** Determines if this provider is enabled. */

0 commit comments

Comments
 (0)