Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.apache.commons.logging.LogFactory;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.EnumerablePropertySource;
Expand Down Expand Up @@ -94,7 +93,7 @@ protected List<T> locateMapPropertySources(ConfigurableEnvironment environment)

return environment.getPropertySources().stream()
.filter(it -> (it.getClass().isAssignableFrom(propertySourceClass))).map(it -> (T) it)
.collect(Collectors.toList());
.toList();
}

public Class<T> getPropertySourceClass() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public void stop() {
if (!waitExistingTasksToFinish()) {
logger.warn("Tasks did not finish in {} seconds for queue {}, proceeding with shutdown",
this.shutdownTimeout.getSeconds(), this.pollingEndpointName);
this.pollingFutures.forEach(pollingFuture -> pollingFuture.cancel(true));
new ArrayList<>(this.pollingFutures).forEach(pollingFuture -> pollingFuture.cancel(true));
}
doStop();
this.acknowledgmentProcessor.stop();
Expand Down