Adapt to changes in third parties
authorMathieu Baudier <mbaudier@argeo.org>
Tue, 1 Nov 2022 09:14:01 +0000 (10:14 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Tue, 1 Nov 2022 09:14:01 +0000 (10:14 +0100)
org.argeo.util/src/org/argeo/osgi/provisioning/SimpleProvisioningService.java

index c0ec29000b466915620ef2d99a3657bff1093f0b..f5e858999ccc8353c5fc73e959d015a0ae1f48f0 100644 (file)
@@ -24,14 +24,16 @@ public class SimpleProvisioningService implements ProvisioningService {
                return new Information();
        }
 
+       @SuppressWarnings("rawtypes")
        @Override
-       public synchronized void setInformation(Dictionary<String, ?> info) {
+       public synchronized void setInformation(Dictionary info) {
                map.clear();
                addInformation(info);
        }
 
+       @SuppressWarnings({ "rawtypes", "unchecked" })
        @Override
-       public synchronized void addInformation(Dictionary<String, ?> info) {
+       public synchronized void addInformation(Dictionary info) {
                Enumeration<String> e = info.keys();
                while (e.hasMoreElements()) {
                        String key = e.nextElement();
@@ -51,6 +53,8 @@ public class SimpleProvisioningService implements ProvisioningService {
                throw new UnsupportedOperationException();
        }
 
+       
+       
        class Information extends Dictionary<String, Object> {
 
                @Override