Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/ServicePermission.java')
-rw-r--r--bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/ServicePermission.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/ServicePermission.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/ServicePermission.java
index ff7fc46dd..e3b61611b 100644
--- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/ServicePermission.java
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/ServicePermission.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) OSGi Alliance (2000, 2013). All Rights Reserved.
+ * Copyright (c) OSGi Alliance (2000, 2015). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -207,7 +207,7 @@ public final class ServicePermission extends BasicPermission {
if (reference == null) {
throw new IllegalArgumentException("reference must not be null");
}
- StringBuffer sb = new StringBuffer("(" + Constants.SERVICE_ID + "=");
+ StringBuilder sb = new StringBuilder("(" + Constants.SERVICE_ID + "=");
sb.append(reference.getProperty(Constants.SERVICE_ID));
sb.append(")");
return sb.toString();
@@ -443,7 +443,7 @@ public final class ServicePermission extends BasicPermission {
public String getActions() {
String result = actions;
if (result == null) {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
boolean comma = false;
int mask = action_mask;
@@ -562,6 +562,7 @@ public final class ServicePermission extends BasicPermission {
final Bundle bundle = service.getBundle();
if (bundle != null) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
+ @Override
public Void run() {
props.put("id", new Long(bundle.getBundleId()));
props.put("location", bundle.getLocation());
@@ -607,6 +608,7 @@ public final class ServicePermission extends BasicPermission {
return service.getProperty(key);
}
+ @Override
public Set<Map.Entry<String, Object>> entrySet() {
if (entries != null) {
return entries;
@@ -632,14 +634,17 @@ public final class ServicePermission extends BasicPermission {
this.v = value;
}
+ @Override
public String getKey() {
return k;
}
+ @Override
public Object getValue() {
return v;
}
+ @Override
public Object setValue(Object value) {
throw new UnsupportedOperationException();
}

Back to the top