Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-08-07 11:03:23 +0000
committerAlexander Kurtakov2020-08-07 11:48:53 +0000
commit5fa169a893c4fd97788bd925c5b288ca98345aa6 (patch)
tree8fec6d284f97cb09128319213d55fd2e0eeab7c7 /bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java
parent6d7f963b18a7571025baf6cba2983956d89bf4bf (diff)
downloadrt.equinox.bundles-5fa169a893c4fd97788bd925c5b288ca98345aa6.tar.gz
rt.equinox.bundles-5fa169a893c4fd97788bd925c5b288ca98345aa6.tar.xz
rt.equinox.bundles-5fa169a893c4fd97788bd925c5b288ca98345aa6.zip
Bug 565890 - Bump useradmin to BREE 1.8
Fix some warnings and silence others. Change-Id: Ie4b4e12e6f1c3b4f3fa10f4e741e9424bbb948b7 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java')
-rw-r--r--bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java b/bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java
index ca8651445..76d36a7a4 100644
--- a/bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java
+++ b/bundles/org.eclipse.equinox.useradmin/src/org/eclipse/equinox/internal/useradmin/User.java
@@ -71,9 +71,10 @@ public class User extends Role implements org.osgi.service.useradmin.User {
* @return Dictionary containing the credentials of this User.
*/
- public Dictionary getCredentials() {
+ @Override
+ public Dictionary<String, Object> getCredentials() {
useradmin.checkAlive();
- return (credentials);
+ return credentials;
}
/**
@@ -94,6 +95,7 @@ public class User extends Role implements org.osgi.service.useradmin.User {
* does not have the <tt>UserAdminPermission</tt> named after the credential
* key (or a prefix of it) with action <code>getCredential</code>.
*/
+ @Override
public boolean hasCredential(String key, Object value) {
useradmin.checkAlive();
Object checkValue = credentials.get(key);
@@ -127,13 +129,15 @@ public class User extends Role implements org.osgi.service.useradmin.User {
*
* @return The role's type.
*/
+ @Override
public int getType() {
useradmin.checkAlive();
return org.osgi.service.useradmin.Role.USER;
}
//A user always implies itself
- protected boolean isImpliedBy(Role role, Vector checkLoop) {
+ @Override
+ protected boolean isImpliedBy(Role role, Vector<String> checkLoop) {
if (checkLoop.contains(name)) {
//we have a circular dependency
return (false);

Back to the top