Reworks test to work more nicely with generics
diff --git a/org.eclipse.virgo.nano.core/src/test/java/org/eclipse/virgo/nano/core/internal/blueprint/ApplicationContextDependencyMonitorTests.java b/org.eclipse.virgo.nano.core/src/test/java/org/eclipse/virgo/nano/core/internal/blueprint/ApplicationContextDependencyMonitorTests.java
index 220ed01..5a9ffff 100644
--- a/org.eclipse.virgo.nano.core/src/test/java/org/eclipse/virgo/nano/core/internal/blueprint/ApplicationContextDependencyMonitorTests.java
+++ b/org.eclipse.virgo.nano.core/src/test/java/org/eclipse/virgo/nano/core/internal/blueprint/ApplicationContextDependencyMonitorTests.java
@@ -248,9 +248,8 @@
this.dependencyMonitor.handleEvent(event);
}
- @SuppressWarnings("unchecked")
- private Dictionary<String, ?> createProperties(String filter, String beanName, boolean mandatory) {
- Dictionary properties = createProperties();
+ private Dictionary<String, Object> createProperties(String filter, String beanName, boolean mandatory) {
+ Dictionary<String, Object> properties = createProperties();
properties.put("dependencies", new String[] { filter });
properties.put("bean.name", new String[] { beanName });
@@ -259,9 +258,8 @@
return properties;
}
- @SuppressWarnings("unchecked")
- private Dictionary<String, ?> createProperties() {
- Dictionary properties = new Hashtable();
+ private Dictionary<String, Object> createProperties() {
+ Dictionary<String, Object> properties = new Hashtable<>();
properties.put(EventConstants.BUNDLE, this.bundle);
return properties;
}