Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-10-07 15:53:37 +0000
committerDani Megert2013-10-07 15:53:37 +0000
commitfef422582be3393016e5221f366138ae7ff5f38f (patch)
tree7cfe73ffe274f659cd0e58854dbadbf0ae4dfff3
parent31d231e66c2153c781982346e03342ad94529dd6 (diff)
downloadeclipse.platform.runtime-I20131008-2330.tar.gz
eclipse.platform.runtime-I20131008-2330.tar.xz
eclipse.platform.runtime-I20131008-2330.zip
Fixed unchecked cast compile warningI20131009-0430I20131008-2330
-rw-r--r--bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/AuthorizationHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/AuthorizationHandler.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/AuthorizationHandler.java
index e99331536..c64aa6f2d 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/AuthorizationHandler.java
+++ b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/AuthorizationHandler.java
@@ -258,21 +258,21 @@ public class AuthorizationHandler {
*XXX Move to a plug-in to be defined (JAAS plugin).
*/
public static synchronized Map<String,String> getAuthorizationInfo(URL serverUrl, String realm, String authScheme) {
- Map<String,String> info = null;
try {
if (!loadKeyring())
return null;
try {
- @SuppressWarnings("unchecked")
Method method = authClass.getMethod("getAuthorizationInfo", new Class[] {URL.class, String.class, String.class}); //$NON-NLS-1$
- info = (Map<String,String>) method.invoke(keyring, new Object[] {serverUrl, realm, authScheme});
+ @SuppressWarnings("unchecked")
+ Map<String,String> info = (Map<String,String>) method.invoke(keyring, new Object[] {serverUrl, realm, authScheme});
+ return info == null ? null : new HashMap<String,String>(info);
} catch (Exception e) {
log(e);
}
} catch (CoreException e) {
// The error has already been logged in loadKeyring()
}
- return info == null ? null : new HashMap<String,String>(info);
+ return null;
}
/**

Back to the top