You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cs...@apache.org on 2019/07/11 15:00:05 UTC
[sling-org-apache-sling-distribution-journal] branch master
updated: SLING-8531 - Fix warnings
This is an automated email from the ASF dual-hosted git repository.
cschneider pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git
The following commit(s) were added to refs/heads/master by this push:
new 1e6851e SLING-8531 - Fix warnings
1e6851e is described below
commit 1e6851e45483f3229dc0a748963255e29e0bee6e
Author: Christian Schneider <cs...@adobe.com>
AuthorDate: Thu Jul 11 16:59:38 2019 +0200
SLING-8531 - Fix warnings
---
.../sling/distribution/journal/impl/shared/ExponentialBackOff.java | 1 -
.../apache/sling/distribution/journal/impl/subscriber/LocalStore.java | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/distribution/journal/impl/shared/ExponentialBackOff.java b/src/main/java/org/apache/sling/distribution/journal/impl/shared/ExponentialBackOff.java
index 8529219..ea7cc28 100644
--- a/src/main/java/org/apache/sling/distribution/journal/impl/shared/ExponentialBackOff.java
+++ b/src/main/java/org/apache/sling/distribution/journal/impl/shared/ExponentialBackOff.java
@@ -25,7 +25,6 @@ import java.time.Duration;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadLocalRandom;
-import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
diff --git a/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/LocalStore.java b/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/LocalStore.java
index 8e43e8a..c619d79 100644
--- a/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/LocalStore.java
+++ b/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/LocalStore.java
@@ -114,7 +114,7 @@ public class LocalStore {
}
}
- private Map filterJcrProperties(ValueMap map) {
+ private Map<String, Object> filterJcrProperties(ValueMap map) {
return map.entrySet().stream()
.filter(e -> ! e.getKey().startsWith("jcr:"))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));