summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-12-06 20:24:58 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-12-06 20:42:23 +0530
commitc35b86741865e65ff18d0b9fa06509c5d2dd35de (patch)
treed5baf1040f35167965a325a8e131e08ae922edce
parent1eebd10625b6711687b7c91011854941938a3c5e (diff)
Removed unnecessary @SuppressWarnings annotations
-rw-r--r--src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/utils/GUIHelper.java1
-rw-r--r--src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/ClusterAdapterFactory.java4
-rw-r--r--src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/DisksView.java1
-rw-r--r--src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersSummaryView.java1
-rw-r--r--src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersView.java1
-rw-r--r--src/org.gluster.storage.management.core/src/org/gluster/storage/management/core/model/Server.java1
-rw-r--r--src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/tasks/ServerSyncTask.java1
-rw-r--r--src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/utils/ServerUtil.java1
8 files changed, 1 insertions, 10 deletions
diff --git a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/utils/GUIHelper.java b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/utils/GUIHelper.java
index 3658d6f..e88d10f 100644
--- a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/utils/GUIHelper.java
+++ b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/utils/GUIHelper.java
@@ -415,7 +415,6 @@ public class GUIHelper {
tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
- @SuppressWarnings("unchecked")
@Override
public void selectionChanged(SelectionChangedEvent event) {
List<Object> checkedElements = Arrays.asList(tableViewer.getCheckedElements());
diff --git a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/ClusterAdapterFactory.java b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/ClusterAdapterFactory.java
index 6643b33..7afdde1 100644
--- a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/ClusterAdapterFactory.java
+++ b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/ClusterAdapterFactory.java
@@ -46,7 +46,7 @@ public class ClusterAdapterFactory implements IAdapterFactory {
return ((Entity)o).getName();
}
- @SuppressWarnings({ "unchecked", "rawtypes" })
+ @SuppressWarnings("rawtypes")
@Override
public ImageDescriptor getImageDescriptor(Object object) {
String iconPath = null;
@@ -82,7 +82,6 @@ public class ClusterAdapterFactory implements IAdapterFactory {
}
};
- @SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adapterType == IWorkbenchAdapter.class) {
@@ -93,7 +92,6 @@ public class ClusterAdapterFactory implements IAdapterFactory {
return null;
}
- @SuppressWarnings("rawtypes")
@Override
public Class[] getAdapterList() {
return new Class[] { IWorkbenchAdapter.class };
diff --git a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/DisksView.java b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/DisksView.java
index 70946e9..6e840c0 100644
--- a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/DisksView.java
+++ b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/DisksView.java
@@ -37,7 +37,6 @@ public class DisksView extends ViewPart {
private EntityGroup<GlusterServer> servers;
private DisksPage page;
- @SuppressWarnings("unchecked")
@Override
public void createPartControl(Composite parent) {
if (servers == null) {
diff --git a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersSummaryView.java b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersSummaryView.java
index b7f7817..6d923a6 100644
--- a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersSummaryView.java
+++ b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersSummaryView.java
@@ -64,7 +64,6 @@ public class GlusterServersSummaryView extends ViewPart {
/* (non-Javadoc)
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
*/
- @SuppressWarnings("unchecked")
@Override
public void createPartControl(Composite parent) {
if (servers == null) {
diff --git a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersView.java b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersView.java
index fa5571b..0104ce9 100644
--- a/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersView.java
+++ b/src/org.gluster.storage.management.console/src/org/gluster/storage/management/console/views/GlusterServersView.java
@@ -44,7 +44,6 @@ public class GlusterServersView extends ViewPart implements IDoubleClickListener
/* (non-Javadoc)
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
*/
- @SuppressWarnings("unchecked")
@Override
public void createPartControl(Composite parent) {
if (servers == null) {
diff --git a/src/org.gluster.storage.management.core/src/org/gluster/storage/management/core/model/Server.java b/src/org.gluster.storage.management.core/src/org/gluster/storage/management/core/model/Server.java
index f8dc5c8..a0d20d0 100644
--- a/src/org.gluster.storage.management.core/src/org/gluster/storage/management/core/model/Server.java
+++ b/src/org.gluster.storage.management.core/src/org/gluster/storage/management/core/model/Server.java
@@ -201,7 +201,6 @@ public class Server extends Entity {
*
* @param server
*/
- @SuppressWarnings("unchecked")
public void copyFrom(Server server) {
setName(server.getName());
setParent(server.getParent());
diff --git a/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/tasks/ServerSyncTask.java b/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/tasks/ServerSyncTask.java
index 5884df6..59874ad 100644
--- a/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/tasks/ServerSyncTask.java
+++ b/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/tasks/ServerSyncTask.java
@@ -138,7 +138,6 @@ public class ServerSyncTask {
return false;
}
- @SuppressWarnings("unchecked")
private void discoverServers() {
if(discoveryMechanism.equals(GlusterConstants.NONE)) {
return;
diff --git a/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/utils/ServerUtil.java b/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/utils/ServerUtil.java
index dc4f55d..9a8b140 100644
--- a/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/utils/ServerUtil.java
+++ b/src/org.gluster.storage.management.gateway/src/org/gluster/storage/management/gateway/utils/ServerUtil.java
@@ -329,7 +329,6 @@ public class ServerUtil {
* Input string
* @return Object of given expected class
*/
- @SuppressWarnings("unchecked")
public <T> T unmarshal(Class<T> expectedClass, String input) {
try {
// create JAXB context and instantiate marshaller