Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>9</release>
<source>9</source>
<target>9</target>
<release>8</release>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/spotify/dns/AbstractChangeNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static java.util.Objects.requireNonNull;

import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

if (fire) {
notifyListener(newChangeNotification(current(), Set.of()), true);
notifyListener(newChangeNotification(current(), Sets.newHashSet()), true);
}
} finally {
lock.unlock();
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/spotify/dns/ChangeNotifiers.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.spotify.dns;

import com.google.common.collect.Sets;

import static com.spotify.dns.ChangeNotifierFactory.RunnableChangeNotifier;
import static java.util.Objects.requireNonNull;

Expand Down Expand Up @@ -91,7 +93,7 @@ public static <T> ChangeNotifier<T> aggregate(Iterable<ChangeNotifier<T>> notifi
* @return A notifier with a static set of records
*/
public static <T> ChangeNotifier<T> staticRecords(T... records) {
return staticRecords(Set.of(records));
return staticRecords(Sets.newHashSet(records));
}

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

/**
* @deprecated Use {@link #direct(java.util.function.Supplier)}
* deprecated since version 3.2.0
*/
@Deprecated(since = "3.2.0")
public static <T> RunnableChangeNotifier<T> direct(com.google.common.base.Supplier<Set<T>> recordsSupplier) {
return new DirectChangeNotifier<>(recordsSupplier);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/spotify/dns/DnsSrvWatchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public static <T> DnsSrvWatcherBuilder<T> newBuilder(

/**
* @deprecated Use {@link #newBuilder(DnsSrvResolver, java.util.function.Function)}
* deprecated since version 3.2.0
*/
@Deprecated(since = "3.2.0")
public static <T> DnsSrvWatcherBuilder<T> newBuilder(
DnsSrvResolver resolver,
com.google.common.base.Function<LookupResult, T> resultTransformer) {
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/module-info.java

This file was deleted.