From e5b74ce04e0b21bbd0d841e154e9ae0fbbd0831d Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 22 May 2021 13:36:13 +0200 Subject: [PATCH] [ci] Build with Java 15 too --- .github/workflows/ci.yml | 1 + build.gradle | 2 +- .../android21/AndroidUsingLinkProperties.java | 5 +++++ .../main/java/org/minidns/source/async/AsyncDnsRequest.java | 3 +++ .../org/minidns/source/async/AsyncNetworkDataSource.java | 6 ++++++ 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3df0ae3d..1427952d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: matrix: java: - 11 + - 15 env: PRIMARY_JAVA_VERSION: 11 diff --git a/build.gradle b/build.gradle index 23284921..19a2fcf3 100644 --- a/build.gradle +++ b/build.gradle @@ -118,7 +118,7 @@ allprojects { } jacoco { - toolVersion = "0.8.4" + toolVersion = "0.8.6" } jacocoTestReport { diff --git a/minidns-android21/src/main/java/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.java b/minidns-android21/src/main/java/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.java index 9c082621..8a4da724 100644 --- a/minidns-android21/src/main/java/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.java +++ b/minidns-android21/src/main/java/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.java @@ -50,6 +50,11 @@ public static AndroidUsingLinkProperties setup(Context context) { return androidUsingLinkProperties; } + /** + * Construct this DNS server lookup mechanism. + * + * @param context an Android context. + */ public AndroidUsingLinkProperties(Context context) { super(AndroidUsingLinkProperties.class.getSimpleName(), AndroidUsingExec.PRIORITY - 1); connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); diff --git a/minidns-async/src/main/java/org/minidns/source/async/AsyncDnsRequest.java b/minidns-async/src/main/java/org/minidns/source/async/AsyncDnsRequest.java index 028146a8..9cc5b897 100644 --- a/minidns-async/src/main/java/org/minidns/source/async/AsyncDnsRequest.java +++ b/minidns-async/src/main/java/org/minidns/source/async/AsyncDnsRequest.java @@ -37,6 +37,9 @@ import org.minidns.source.AbstractDnsDataSource.QueryMode; import org.minidns.util.MultipleIoException; +/** + * A DNS request that is performed asynchronously. + */ public class AsyncDnsRequest { private static final Logger LOGGER = Logger.getLogger(AsyncDnsRequest.class.getName()); diff --git a/minidns-async/src/main/java/org/minidns/source/async/AsyncNetworkDataSource.java b/minidns-async/src/main/java/org/minidns/source/async/AsyncNetworkDataSource.java index dfe0127d..7b796ffa 100644 --- a/minidns-async/src/main/java/org/minidns/source/async/AsyncNetworkDataSource.java +++ b/minidns-async/src/main/java/org/minidns/source/async/AsyncNetworkDataSource.java @@ -37,8 +37,14 @@ import org.minidns.dnsqueryresult.DnsQueryResult; import org.minidns.source.AbstractDnsDataSource; +/** + * A DNS data sources that resolves requests via the network asynchronously. + */ public class AsyncNetworkDataSource extends AbstractDnsDataSource { + /** + * The logger of this data source. + */ protected static final Logger LOGGER = Logger.getLogger(AsyncNetworkDataSource.class.getName()); private static final int REACTOR_THREAD_COUNT = 1;