Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-04-27 16:26:34 +0000
committerSteffen Pingel2013-04-27 16:26:34 +0000
commit542c2a3ec5129854de11cfe9ae476b1b598c1078 (patch)
tree982b59676e2f0a1a9979535e60b573eb21dfcad8 /org.eclipse.mylyn.tasks.ui
parentfb1bf0663dd3bd722b0003bb82b9b9a2cbf711fb (diff)
downloadorg.eclipse.mylyn.tasks-542c2a3ec5129854de11cfe9ae476b1b598c1078.tar.gz
org.eclipse.mylyn.tasks-542c2a3ec5129854de11cfe9ae476b1b598c1078.tar.xz
org.eclipse.mylyn.tasks-542c2a3ec5129854de11cfe9ae476b1b598c1078.zip
399302: reduce the number of warnings for all Tasks plugins
Change-Id: I2615efba4b9643ffa2bbce52d2172d6e8d1cf9bb Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=399302
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java2
2 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
index dec13eeca..5d40fa008 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
@@ -354,6 +354,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
private AbstractTaskActivityMonitor taskActivityMonitor;
+ @SuppressWarnings("rawtypes")
private ServiceReference proxyServiceReference;
private IProxyChangeListener proxyChangeListener;
@@ -559,6 +560,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
proxyServiceReference = context.getServiceReference(IProxyService.class.getName());
if (proxyServiceReference != null) {
+ @SuppressWarnings("unchecked")
IProxyService proxyService = (IProxyService) context.getService(proxyServiceReference);
if (proxyService != null) {
proxyChangeListener = new IProxyChangeListener() {
@@ -763,6 +765,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
}
if (proxyServiceReference != null) {
+ @SuppressWarnings("unchecked")
IProxyService proxyService = (IProxyService) context.getService(proxyServiceReference);
if (proxyService != null) {
proxyService.removeProxyChangeListener(proxyChangeListener);
@@ -1004,6 +1007,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
private final Map<String, List<IDynamicSubMenuContributor>> menuContributors = new HashMap<String, List<IDynamicSubMenuContributor>>();
+ @SuppressWarnings("rawtypes")
private ServiceTracker identityServiceTracker;
public Map<String, List<IDynamicSubMenuContributor>> getDynamicMenuMap() {
@@ -1375,6 +1379,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
}
}
+ @SuppressWarnings("restriction")
public ServiceMessageManager getServiceMessageManager() {
return serviceMessageManager;
}
@@ -1383,6 +1388,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
return synchronizationManger;
}
+ @SuppressWarnings({ "rawtypes", "unchecked", "restriction" })
public IIdentityService getIdentityService() {
if (identityServiceTracker == null) {
identityServiceTracker = new ServiceTracker(getBundle().getBundleContext(),
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
index dab8d9417..1e3a0b099 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
@@ -405,7 +405,7 @@ public class TasksUiUtil {
*/
public static boolean openWithBrowser(IRepositoryElement element) {
TaskRepository repository = TasksUiInternal.getRepository(element);
- return (repository != null) ? openWithBrowser(repository, element) : null;
+ return (repository != null) ? openWithBrowser(repository, element) : false;
}
/**

Back to the top