aboutsummaryrefslogtreecommitdiffstats
path: root/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-11-18 20:37:35 +0100
committerJon Bratseth <bratseth@gmail.com>2020-11-18 20:37:35 +0100
commitb01ecd72d26a45ff4b498881446f5e62237c64be (patch)
treec6b4626e262d234900929132e4554b00cda03c49 /container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java
parent804b5ea7d3822847d2b732c79fd35a5eceba15b4 (diff)
Non-functional-changes-only
Diffstat (limited to 'container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java')
-rw-r--r--container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java44
1 files changed, 10 insertions, 34 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java b/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java
index a8acaf7dd10..baf7ac8c4dc 100644
--- a/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java
+++ b/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java
@@ -22,25 +22,19 @@ public class RestrictedBundleContext implements BundleContext {
@Override
public ServiceRegistration<?> registerService(String[] strings, Object o, Dictionary<String, ?> stringDictionary) {
- if (wrapped == null) {
- return null;
- }
+ if (wrapped == null) return null;
return wrapped.registerService(strings, o, stringDictionary);
}
@Override
public ServiceRegistration<?> registerService(String localHostname, Object o, Dictionary<String, ?> stringDictionary) {
- if (wrapped == null) {
- return null;
- }
+ if (wrapped == null) return null;
return wrapped.registerService(localHostname, o, stringDictionary);
}
@Override
public <S> ServiceRegistration<S> registerService(Class<S> sClass, S s, Dictionary<String, ?> stringDictionary) {
- if (wrapped == null) {
- return null;
- }
+ if (wrapped == null) return null;
return wrapped.registerService(sClass, s, stringDictionary);
}
@@ -51,57 +45,43 @@ public class RestrictedBundleContext implements BundleContext {
@Override
public ServiceReference<?>[] getServiceReferences(String localHostname, String localHostname2) throws InvalidSyntaxException {
- if (wrapped == null) {
- return new ServiceReference<?>[0];
- }
+ if (wrapped == null) return new ServiceReference<?>[0];
return wrapped.getServiceReferences(localHostname, localHostname2);
}
@Override
public ServiceReference<?>[] getAllServiceReferences(String localHostname, String localHostname2) throws InvalidSyntaxException {
- if (wrapped == null) {
- return new ServiceReference<?>[0];
- }
+ if (wrapped == null) return new ServiceReference<?>[0];
return wrapped.getAllServiceReferences(localHostname, localHostname2);
}
@Override
public ServiceReference<?> getServiceReference(String localHostname) {
- if (wrapped == null) {
- return null;
- }
+ if (wrapped == null) return null;
return wrapped.getServiceReference(localHostname);
}
@Override
public <S> ServiceReference<S> getServiceReference(Class<S> sClass) {
- if (wrapped == null) {
- return null;
- }
+ if (wrapped == null) return null;
return wrapped.getServiceReference(sClass);
}
@Override
public <S> Collection<ServiceReference<S>> getServiceReferences(Class<S> sClass, String localHostname) throws InvalidSyntaxException {
- if (wrapped == null) {
- return Collections.<ServiceReference<S>>emptyList();
- }
+ if (wrapped == null) return Collections.<ServiceReference<S>>emptyList();
return wrapped.getServiceReferences(sClass, localHostname);
}
@Override
public <S> S getService(ServiceReference<S> sServiceReference) {
- if (wrapped == null) {
- return null;
- }
+ if (wrapped == null) return null;
return wrapped.getService(sServiceReference);
}
@Override
public boolean ungetService(ServiceReference<?> serviceReference) {
- if (wrapped == null) {
- return false;
- }
+ if (wrapped == null) return false;
return wrapped.ungetService(serviceReference);
}
@@ -110,10 +90,6 @@ public class RestrictedBundleContext implements BundleContext {
return null;
}
-
- //---------------------
-
-
@Override
public String getProperty(String localHostname) {
throw newException();