You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/06/07 14:23:23 UTC
[sling-org-apache-sling-event] branch master updated: SLING-10326 -
avoid warnings about generics
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-event.git
The following commit(s) were added to refs/heads/master by this push:
new 898d6d4 SLING-10326 - avoid warnings about generics
898d6d4 is described below
commit 898d6d44aec6c76d43a1b83bbb0007173e9ef675
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Jun 7 16:22:58 2021 +0200
SLING-10326 - avoid warnings about generics
---
.../org/apache/sling/event/impl/jobs/console/InventoryPluginTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/sling/event/impl/jobs/console/InventoryPluginTest.java b/src/test/java/org/apache/sling/event/impl/jobs/console/InventoryPluginTest.java
index 9ada89b..f2c7d98 100644
--- a/src/test/java/org/apache/sling/event/impl/jobs/console/InventoryPluginTest.java
+++ b/src/test/java/org/apache/sling/event/impl/jobs/console/InventoryPluginTest.java
@@ -112,7 +112,7 @@ public class InventoryPluginTest extends JsonTestBase {
inventoryPlugin.print(printWriter, Format.TEXT, false);
- List<String> outputContains = new ArrayList() {{
+ List<String> outputContains = new ArrayList<String>() {{
add("Apache Sling Job Handling");
add("Overall Statistics");
add("Local topic consumers:");
@@ -148,7 +148,7 @@ public class InventoryPluginTest extends JsonTestBase {
try {
final String json = queryInventoryJSON(inventoryPlugin);
- Map<String, Object> expectedJsonPaths = new HashMap(){{
+ Map<String, Object> expectedJsonPaths = new HashMap<String, Object>(){{
put("$.statistics", null);
put("$.statistics.startTime", 0);
put("$.statistics.lastActivatedJobTime", 0);