Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit d0b3d89

Browse files
authored
Switch back to jdk 8 compiler and remove java modules (#50)
1 parent 82f8d29 commit d0b3d89

5 files changed

Lines changed: 10 additions & 16 deletions

File tree

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@
242242
<artifactId>maven-compiler-plugin</artifactId>
243243
<version>3.8.1</version>
244244
<configuration>
245-
<release>9</release>
246-
<source>9</source>
247-
<target>9</target>
245+
<release>8</release>
246+
<source>8</source>
247+
<target>8</target>
248248
</configuration>
249249
</plugin>
250250
<plugin>

src/main/java/com/spotify/dns/AbstractChangeNotifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static java.util.Objects.requireNonNull;
2020

2121
import com.google.common.collect.ImmutableSet;
22+
import com.google.common.collect.Sets;
2223
import org.slf4j.Logger;
2324
import org.slf4j.LoggerFactory;
2425

@@ -52,7 +53,7 @@ public void setListener(final Listener<T> listener, final boolean fire) {
5253
}
5354

5455
if (fire) {
55-
notifyListener(newChangeNotification(current(), Set.of()), true);
56+
notifyListener(newChangeNotification(current(), Sets.newHashSet()), true);
5657
}
5758
} finally {
5859
lock.unlock();

src/main/java/com/spotify/dns/ChangeNotifiers.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.spotify.dns;
1818

19+
import com.google.common.collect.Sets;
20+
1921
import static com.spotify.dns.ChangeNotifierFactory.RunnableChangeNotifier;
2022
import static java.util.Objects.requireNonNull;
2123

@@ -91,7 +93,7 @@ public static <T> ChangeNotifier<T> aggregate(Iterable<ChangeNotifier<T>> notifi
9193
* @return A notifier with a static set of records
9294
*/
9395
public static <T> ChangeNotifier<T> staticRecords(T... records) {
94-
return staticRecords(Set.of(records));
96+
return staticRecords(Sets.newHashSet(records));
9597
}
9698

9799
public static <T> ChangeNotifier<T> staticRecords(Set<T> records) {
@@ -118,8 +120,8 @@ public static <T> RunnableChangeNotifier<T> direct(Supplier<Set<T>> recordsSuppl
118120

119121
/**
120122
* @deprecated Use {@link #direct(java.util.function.Supplier)}
123+
* deprecated since version 3.2.0
121124
*/
122-
@Deprecated(since = "3.2.0")
123125
public static <T> RunnableChangeNotifier<T> direct(com.google.common.base.Supplier<Set<T>> recordsSupplier) {
124126
return new DirectChangeNotifier<>(recordsSupplier);
125127
}

src/main/java/com/spotify/dns/DnsSrvWatchers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public static <T> DnsSrvWatcherBuilder<T> newBuilder(
7676

7777
/**
7878
* @deprecated Use {@link #newBuilder(DnsSrvResolver, java.util.function.Function)}
79+
* deprecated since version 3.2.0
7980
*/
80-
@Deprecated(since = "3.2.0")
8181
public static <T> DnsSrvWatcherBuilder<T> newBuilder(
8282
DnsSrvResolver resolver,
8383
com.google.common.base.Function<LookupResult, T> resultTransformer) {

src/main/java/module-info.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)