Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-11-10 10:00:04 +0000
committerEike Stepper2009-11-10 10:00:04 +0000
commit9ad2e421e12eca84ec8f3a941eeb403cb200fb07 (patch)
tree98b4db6c8a39cdea127f49acb71a836f053d88df /plugins
parent9dd9b12952da3b6bfb1ddaf785c16f73bce8006b (diff)
downloadcdo-9ad2e421e12eca84ec8f3a941eeb403cb200fb07.tar.gz
cdo-9ad2e421e12eca84ec8f3a941eeb403cb200fb07.tar.xz
cdo-9ad2e421e12eca84ec8f3a941eeb403cb200fb07.zip
Fixing various raw types warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/FeatureMapEntryTuplizer.java244
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WildCardAttributePropertyHandler.java132
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/Node.java2
-rw-r--r--plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/internal/common/Membership.java4
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerSession.java2
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java6
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/SessionManager.java4
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TransportTest.java41
-rw-r--r--plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/internal/ui/views/Net4jIntrospectorView.java21
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/History.java4
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/HistoryElement.java6
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/MultiMap.java7
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerEventAdapter.java6
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ManagedContainer.java8
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java4
-rw-r--r--plugins/org.gastro.rcp.department/src/com/swtdesigner/ResourceManager.java24
-rw-r--r--plugins/org.gastro.rcp.department/src/com/swtdesigner/SWTResourceManager.java26
-rw-r--r--plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java24
-rw-r--r--plugins/org.gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java26
19 files changed, 303 insertions, 288 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/FeatureMapEntryTuplizer.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/FeatureMapEntryTuplizer.java
index 9e7ff1129b..3a6c797cf1 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/FeatureMapEntryTuplizer.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/FeatureMapEntryTuplizer.java
@@ -1,122 +1,122 @@
-/**
- * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Martin Taal - initial api
- * Eike Stepper - maintenance
- */
-package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer;
-
-import org.eclipse.emf.cdo.server.internal.hibernate.CDOHibernateConstants;
-import org.eclipse.emf.cdo.spi.common.revision.CDOFeatureMapEntry;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.hibernate.mapping.Component;
-import org.hibernate.mapping.Property;
-import org.hibernate.property.Getter;
-import org.hibernate.property.PropertyAccessor;
-import org.hibernate.property.Setter;
-import org.hibernate.tuple.Instantiator;
-import org.hibernate.tuple.component.AbstractComponentTuplizer;
-
-/**
- * Tuplizer for feature map entries. These types are mapped using the dynamic capabilities of Hibernate.
- *
- * @see CDOFeatureMapEntry
- * @see FeatureMapEntryPropertyHandler
- * @see FeatureMapEntryFeatureURIPropertyHandler
- * @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- * @version $Revision: 1.1 $
- */
-
-public class FeatureMapEntryTuplizer extends AbstractComponentTuplizer
-{
- private static final long serialVersionUID = 1L;
-
- private static final EStructuralFeature TEXT = XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_Text();
-
- private static final EStructuralFeature CDATA = XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_CDATA();
-
- private static final EStructuralFeature COMMENT = XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_Comment();
-
- public FeatureMapEntryTuplizer(Component component)
- {
- super(component);
- }
-
- @Override
- protected Instantiator buildInstantiator(Component component)
- {
- return new FeatureMapEntryInstantiator(component);
- }
-
- @Override
- protected Getter buildGetter(Component component, Property prop)
- {
- return getPropertyAccessor(prop, component).getGetter(component.getComponentClass(), prop.getName());
- }
-
- @Override
- protected Setter buildSetter(Component component, Property prop)
- {
- return getPropertyAccessor(prop, component).getSetter(component.getComponentClass(), prop.getName());
- }
-
- protected PropertyAccessor getPropertyAccessor(Property mappedProperty, Component component)
- {
- if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_FEATURE) == 0)
- {
- return new FeatureMapEntryFeatureURIPropertyHandler();
- }
- else if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_COMMENT) == 0)
- {
- final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
- propertyHandler.setPropertyName(COMMENT.getName());
- return propertyHandler;
- }
- else if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_CDATA) == 0)
- {
- final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
- propertyHandler.setPropertyName(CDATA.getName());
- return propertyHandler;
- }
- else if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_TEXT) == 0)
- {
- final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
- propertyHandler.setPropertyName(TEXT.getName());
- return propertyHandler;
- }
- else if (mappedProperty.getName().endsWith(CDOHibernateConstants.FEATUREMAP_PROPERTY_ANY_PRIMITIVE))
- {
- final WildCardAttributePropertyHandler propertyHandler = new WildCardAttributePropertyHandler();
- final int index = mappedProperty.getName().lastIndexOf("_");
- final String propName = mappedProperty.getName().substring(0, index);
- propertyHandler.setPropertyName(propName);
- return propertyHandler;
- }
- else if (mappedProperty.getName().endsWith(CDOHibernateConstants.FEATUREMAP_PROPERTY_ANY_REFERENCE))
- {
- final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
- final int index = mappedProperty.getName().lastIndexOf("_");
- final String propName = mappedProperty.getName().substring(0, index);
- propertyHandler.setPropertyName(propName);
- return propertyHandler;
- }
-
- final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
- propertyHandler.setPropertyName(mappedProperty.getName());
- return propertyHandler;
- }
-
- @SuppressWarnings("unchecked")
- public Class getMappedClass()
- {
- return CDOFeatureMapEntry.class;
- }
-}
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Taal - initial api
+ * Eike Stepper - maintenance
+ */
+package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer;
+
+import org.eclipse.emf.cdo.server.internal.hibernate.CDOHibernateConstants;
+import org.eclipse.emf.cdo.spi.common.revision.CDOFeatureMapEntry;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
+import org.hibernate.mapping.Component;
+import org.hibernate.mapping.Property;
+import org.hibernate.property.Getter;
+import org.hibernate.property.PropertyAccessor;
+import org.hibernate.property.Setter;
+import org.hibernate.tuple.Instantiator;
+import org.hibernate.tuple.component.AbstractComponentTuplizer;
+
+/**
+ * Tuplizer for feature map entries. These types are mapped using the dynamic capabilities of Hibernate.
+ *
+ * @see CDOFeatureMapEntry
+ * @see FeatureMapEntryPropertyHandler
+ * @see FeatureMapEntryFeatureURIPropertyHandler
+ * @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
+ * @version $Revision: 1.2 $
+ */
+
+public class FeatureMapEntryTuplizer extends AbstractComponentTuplizer
+{
+ private static final long serialVersionUID = 1L;
+
+ private static final EStructuralFeature TEXT = XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_Text();
+
+ private static final EStructuralFeature CDATA = XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_CDATA();
+
+ private static final EStructuralFeature COMMENT = XMLTypePackage.eINSTANCE.getXMLTypeDocumentRoot_Comment();
+
+ public FeatureMapEntryTuplizer(Component component)
+ {
+ super(component);
+ }
+
+ @Override
+ protected Instantiator buildInstantiator(Component component)
+ {
+ return new FeatureMapEntryInstantiator(component);
+ }
+
+ @Override
+ protected Getter buildGetter(Component component, Property prop)
+ {
+ return getPropertyAccessor(prop, component).getGetter(component.getComponentClass(), prop.getName());
+ }
+
+ @Override
+ protected Setter buildSetter(Component component, Property prop)
+ {
+ return getPropertyAccessor(prop, component).getSetter(component.getComponentClass(), prop.getName());
+ }
+
+ protected PropertyAccessor getPropertyAccessor(Property mappedProperty, Component component)
+ {
+ if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_FEATURE) == 0)
+ {
+ return new FeatureMapEntryFeatureURIPropertyHandler();
+ }
+ else if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_COMMENT) == 0)
+ {
+ final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
+ propertyHandler.setPropertyName(COMMENT.getName());
+ return propertyHandler;
+ }
+ else if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_CDATA) == 0)
+ {
+ final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
+ propertyHandler.setPropertyName(CDATA.getName());
+ return propertyHandler;
+ }
+ else if (mappedProperty.getName().compareToIgnoreCase(CDOHibernateConstants.FEATUREMAP_PROPERTY_TEXT) == 0)
+ {
+ final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
+ propertyHandler.setPropertyName(TEXT.getName());
+ return propertyHandler;
+ }
+ else if (mappedProperty.getName().endsWith(CDOHibernateConstants.FEATUREMAP_PROPERTY_ANY_PRIMITIVE))
+ {
+ final WildCardAttributePropertyHandler propertyHandler = new WildCardAttributePropertyHandler();
+ final int index = mappedProperty.getName().lastIndexOf("_");
+ final String propName = mappedProperty.getName().substring(0, index);
+ propertyHandler.setPropertyName(propName);
+ return propertyHandler;
+ }
+ else if (mappedProperty.getName().endsWith(CDOHibernateConstants.FEATUREMAP_PROPERTY_ANY_REFERENCE))
+ {
+ final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
+ final int index = mappedProperty.getName().lastIndexOf("_");
+ final String propName = mappedProperty.getName().substring(0, index);
+ propertyHandler.setPropertyName(propName);
+ return propertyHandler;
+ }
+
+ final FeatureMapEntryPropertyHandler propertyHandler = new FeatureMapEntryPropertyHandler();
+ propertyHandler.setPropertyName(mappedProperty.getName());
+ return propertyHandler;
+ }
+
+ @SuppressWarnings("rawtypes")
+ public Class getMappedClass()
+ {
+ return CDOFeatureMapEntry.class;
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WildCardAttributePropertyHandler.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WildCardAttributePropertyHandler.java
index 97a053cc66..1239a7d980 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WildCardAttributePropertyHandler.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WildCardAttributePropertyHandler.java
@@ -1,66 +1,66 @@
-/**
- * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Martin Taal - copied from CDORevisionPropertyHandler and adapted
- * Eike Stepper - maintenance
- */
-package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.util.FeatureMap;
-
-import org.hibernate.HibernateException;
-import org.hibernate.engine.SessionImplementor;
-
-import java.util.Map;
-
-/**
- * Implements the getter/setter for a wild card EAttribute property. This type of property is used in a feature map
- * created for wild cards. This class implements both the getter, setter and propertyaccessor interfaces. When the
- * getGetter and getSetter methods are called it returns itself.
- *
- * @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- */
-@SuppressWarnings("unchecked")
-public class WildCardAttributePropertyHandler extends FeatureMapEntryPropertyHandler
-{
- private static final long serialVersionUID = -2659637883475733107L;
-
- @Override
- public Object get(Object owner) throws HibernateException
- {
- final FeatureMap.Entry fme = (FeatureMap.Entry)owner;
- final Object value = fme.getValue();
- final EStructuralFeature eFeature = fme.getEStructuralFeature();
- // not handled by this one
- if (value instanceof EObject)
- {
- return null;
- }
-
- if (value == null)
- {
- return null;
- }
-
- final EAttribute eAttribute = (EAttribute)eFeature;
- final EDataType eDataType = eAttribute.getEAttributeType();
- final String valueString = eDataType.getEPackage().getEFactoryInstance().convertToString(eDataType, value);
- return valueString;
- }
-
- @Override
- public Object getForInsert(Object owner, Map mergeMap, SessionImplementor session) throws HibernateException
- {
- final Object value = get(owner);
- return value;
- }
-}
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. and others
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Taal - copied from CDORevisionPropertyHandler and adapted
+ * Eike Stepper - maintenance
+ */
+package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.FeatureMap;
+
+import org.hibernate.HibernateException;
+import org.hibernate.engine.SessionImplementor;
+
+import java.util.Map;
+
+/**
+ * Implements the getter/setter for a wild card EAttribute property. This type of property is used in a feature map
+ * created for wild cards. This class implements both the getter, setter and propertyaccessor interfaces. When the
+ * getGetter and getSetter methods are called it returns itself.
+ *
+ * @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
+ */
+public class WildCardAttributePropertyHandler extends FeatureMapEntryPropertyHandler
+{
+ private static final long serialVersionUID = -2659637883475733107L;
+
+ @Override
+ public Object get(Object owner) throws HibernateException
+ {
+ final FeatureMap.Entry fme = (FeatureMap.Entry)owner;
+ final Object value = fme.getValue();
+ final EStructuralFeature eFeature = fme.getEStructuralFeature();
+ // not handled by this one
+ if (value instanceof EObject)
+ {
+ return null;
+ }
+
+ if (value == null)
+ {
+ return null;
+ }
+
+ final EAttribute eAttribute = (EAttribute)eFeature;
+ final EDataType eDataType = eAttribute.getEAttributeType();
+ final String valueString = eDataType.getEPackage().getEFactoryInstance().convertToString(eDataType, value);
+ return valueString;
+ }
+
+ @Override
+ @SuppressWarnings("rawtypes")
+ public Object getForInsert(Object owner, Map mergeMap, SessionImplementor session) throws HibernateException
+ {
+ final Object value = get(owner);
+ return value;
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/Node.java b/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/Node.java
index 1ec7c51f70..37a7b8e335 100644
--- a/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/Node.java
+++ b/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/Node.java
@@ -174,7 +174,7 @@ public abstract class Node extends PlatformObject
return "icons/full/obj16/Resources.gif"; //$NON-NLS-1$
}
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Class adapter)
{
diff --git a/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/internal/common/Membership.java b/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/internal/common/Membership.java
index eaf97cb2a9..ed2cdbcb2a 100644
--- a/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/internal/common/Membership.java
+++ b/plugins/org.eclipse.net4j.buddies.common/src/org/eclipse/net4j/buddies/internal/common/Membership.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
*/
@@ -72,7 +72,7 @@ public class Membership extends Lifecycle implements IMembership
/**
* @see PlatformObject#getAdapter(Class)
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter)
{
return Platform.getAdapterManager().getAdapter(this, adapter);
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerSession.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerSession.java
index 5fd58a9a86..aa7fa1e10d 100644
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerSession.java
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/ServerSession.java
@@ -64,7 +64,7 @@ public class ServerSession extends Lifecycle implements ISession, IListener
/**
* @see PlatformObject#getAdapter(Class)
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter)
{
return Platform.getAdapterManager().getAdapter(this, adapter);
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java
index 91253b09c4..356a442b52 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
*/
@@ -169,7 +169,6 @@ public class CollaborationsPane extends Composite implements IListener
}
}
- @SuppressWarnings("unchecked")
public void notifyEvent(IEvent event)
{
if (session == null)
@@ -177,8 +176,9 @@ public class CollaborationsPane extends Composite implements IListener
return;
}
- if (event.getSource() == session.getSelf() && event instanceof IContainerEvent)
+ if (event.getSource() == session.getSelf() && event instanceof IContainerEvent<?>)
{
+ @SuppressWarnings("unchecked")
IContainerEvent<IMembership> e = (IContainerEvent<IMembership>)event;
e.accept(new IContainerEventVisitor<IMembership>()
{
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/SessionManager.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/SessionManager.java
index b64681252e..c5a1bbb80b 100644
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/SessionManager.java
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/SessionManager.java
@@ -192,7 +192,6 @@ public class SessionManager extends Lifecycle implements ISessionManager, IListe
}
}
- @SuppressWarnings("unchecked")
public void notifyEvent(IEvent event)
{
if (event.getSource() == session)
@@ -208,8 +207,9 @@ public class SessionManager extends Lifecycle implements ISessionManager, IListe
}
}
}
- else if (event instanceof IContainerEvent)
+ else if (event instanceof IContainerEvent<?>)
{
+ @SuppressWarnings("unchecked")
IContainerEvent<IBuddy> e = (IContainerEvent<IBuddy>)event;
if (e.getDeltaKind() == IContainerDelta.Kind.ADDED)
{
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TransportTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TransportTest.java
index dc1d885488..1309bc5c43 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TransportTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TransportTest.java
@@ -43,7 +43,6 @@ import java.util.concurrent.TimeUnit;
/**
* @author Eike Stepper
*/
-@SuppressWarnings("unchecked")
public abstract class TransportTest extends AbstractProtocolTest
{
public TransportTest()
@@ -108,16 +107,18 @@ public abstract class TransportTest extends AbstractProtocolTest
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IConnector> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IConnector> e = (IContainerEvent<IConnector>)event;
e.getDeltaElement().addListener(new IListener()
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IChannel> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IChannel> e = (IContainerEvent<IChannel>)event;
if (e.getDeltaKind() == IContainerDelta.Kind.ADDED)
{
inputStream[0] = new ChannelInputStream(e.getDeltaElement(), 2000);
@@ -170,16 +171,18 @@ public abstract class TransportTest extends AbstractProtocolTest
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IConnector> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IConnector> e = (IContainerEvent<IConnector>)event;
e.getDeltaElement().addListener(new IListener()
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IChannel> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IChannel> e = (IContainerEvent<IChannel>)event;
if (e.getDeltaKind() == IContainerDelta.Kind.ADDED)
{
inputStream[0] = new ChannelInputStream(e.getDeltaElement(), 2000);
@@ -236,16 +239,18 @@ public abstract class TransportTest extends AbstractProtocolTest
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IConnector> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IConnector> e = (IContainerEvent<IConnector>)event;
e.getDeltaElement().addListener(new IListener()
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IChannel> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IChannel> e = (IContainerEvent<IChannel>)event;
if (e.getDeltaKind() == IContainerDelta.Kind.ADDED)
{
inputStream[0] = new ChannelInputStream(e.getDeltaElement(), 2000);
@@ -318,16 +323,18 @@ public abstract class TransportTest extends AbstractProtocolTest
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IConnector> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IConnector> e = (IContainerEvent<IConnector>)event;
e.getDeltaElement().addListener(new IListener()
{
public void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<IChannel> e = (IContainerEvent)event;
+ @SuppressWarnings("unchecked")
+ IContainerEvent<IChannel> e = (IContainerEvent<IChannel>)event;
if (e.getDeltaKind() == IContainerDelta.Kind.ADDED)
{
inputStream[0] = new ChannelInputStream(e.getDeltaElement(), 2000);
diff --git a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/internal/ui/views/Net4jIntrospectorView.java b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/internal/ui/views/Net4jIntrospectorView.java
index 285bf8fb3c..366eb89a2a 100644
--- a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/internal/ui/views/Net4jIntrospectorView.java
+++ b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/internal/ui/views/Net4jIntrospectorView.java
@@ -232,7 +232,6 @@ public class Net4jIntrospectorView extends ViewPart implements ISelectionListene
}
}
- @SuppressWarnings("unchecked")
public void doubleClick(DoubleClickEvent event)
{
ISelection sel = event.getSelection();
@@ -240,16 +239,18 @@ public class Net4jIntrospectorView extends ViewPart implements ISelectionListene
{
IStructuredSelection ssel = (IStructuredSelection)sel;
Object element = ssel.getFirstElement();
- if (currentViewer == objectViewer && element instanceof Pair)
+ if (currentViewer == objectViewer && element instanceof Pair<?, ?>)
{
+ @SuppressWarnings("unchecked")
Pair<Field, Object> pair = (Pair<Field, Object>)element;
+
Field field = pair.getElement1();
if (!field.getType().isPrimitive())
{
setObject(pair.getElement2());
}
}
- else if (currentViewer == mapViewer && element instanceof Map.Entry)
+ else if (currentViewer == mapViewer && element instanceof Map.Entry<?, ?>)
{
Map.Entry<?, ?> entry = (Map.Entry<?, ?>)element;
setObject(entry.getValue());
@@ -258,8 +259,9 @@ public class Net4jIntrospectorView extends ViewPart implements ISelectionListene
{
setObject(element);
}
- else if (currentViewer == arrayViewer && element instanceof Pair)
+ else if (currentViewer == arrayViewer && element instanceof Pair<?, ?>)
{
+ @SuppressWarnings("unchecked")
Pair<Integer, Object> pair = (Pair<Integer, Object>)element;
setObject(pair.getElement2());
}
@@ -521,16 +523,18 @@ public class Net4jIntrospectorView extends ViewPart implements ISelectionListene
*/
class ObjectLabelProvider extends AbstractLabelProvider
{
- @SuppressWarnings("unchecked")
public String getColumnText(Object obj, int index)
{
- if (obj instanceof Pair)
+ if (obj instanceof Pair<?, ?>)
{
try
{
+ @SuppressWarnings("unchecked")
Pair<Field, Object> pair = (Pair<Field, Object>)obj;
+
Field field = pair.getElement1();
Object value = pair.getElement2();
+
switch (index)
{
case 0:
@@ -631,14 +635,15 @@ public class Net4jIntrospectorView extends ViewPart implements ISelectionListene
*/
class ArrayLabelProvider extends AbstractLabelProvider
{
- @SuppressWarnings("unchecked")
public String getColumnText(Object obj, int index)
{
- if (obj instanceof Pair)
+ if (obj instanceof Pair<?, ?>)
{
try
{
+ @SuppressWarnings("unchecked")
Pair<Integer, Object> pair = (Pair<Integer, Object>)obj;
+
int i = pair.getElement1();
Object value = pair.getElement2();
switch (index)
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/History.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/History.java
index 11e775e61c..4a57e92d98 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/History.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/History.java
@@ -172,7 +172,9 @@ public class History<T> extends Notifier implements IHistory<T>
@SuppressWarnings("unchecked")
protected IHistoryElement<T> createElement(T data)
{
- return new HistoryElement(this, data);
+ @SuppressWarnings("rawtypes")
+ HistoryElement result = new HistoryElement(this, data);
+ return result;
}
protected void load()
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/HistoryElement.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/HistoryElement.java
index e566b9c0cf..09252f3695 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/HistoryElement.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/HistoryElement.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
*/
@@ -42,7 +42,6 @@ public class HistoryElement<T> implements IHistoryElement<T>
return data.toString();
}
- @SuppressWarnings("unchecked")
@Override
public boolean equals(Object obj)
{
@@ -51,8 +50,9 @@ public class HistoryElement<T> implements IHistoryElement<T>
return true;
}
- if (obj instanceof IHistoryElement)
+ if (obj instanceof IHistoryElement<?>)
{
+ @SuppressWarnings("unchecked")
IHistoryElement<T> that = (IHistoryElement<T>)obj;
return ObjectUtil.equals(history, that.getHistory()) && ObjectUtil.equals(data, that.getData());
}
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/MultiMap.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/MultiMap.java
index e9e5fc9023..dbef86f3ef 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/MultiMap.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/collection/MultiMap.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
*/
@@ -344,19 +344,20 @@ public abstract class MultiMap<K, V> implements Map<K, V>
* @category READ
*/
@Override
- @SuppressWarnings("unchecked")
public boolean contains(Object o)
{
- if (o instanceof Map.Entry)
+ if (o instanceof Map.Entry<?, ?>)
{
for (int i = 0; i < getDelegateCount(); i++)
{
Map<K, V> delegate = getDelegate(i);
if (delegate != null)
{
+ @SuppressWarnings("unchecked")
K key = ((Map.Entry<K, V>)o).getKey();
if (delegate.containsKey(key))
{
+ @SuppressWarnings("unchecked")
V value = ((Map.Entry<K, V>)o).getValue();
if (ObjectUtil.equals(delegate.get(key), value))
{
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerEventAdapter.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerEventAdapter.java
index af92104455..a018aea96a 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerEventAdapter.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ContainerEventAdapter.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Eike Stepper - initial API and implementation
*/
@@ -22,11 +22,11 @@ public class ContainerEventAdapter<E> implements IListener
{
}
- @SuppressWarnings("unchecked")
public final void notifyEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
+ @SuppressWarnings("unchecked")
IContainerEvent<E> e = (IContainerEvent<E>)event;
notifyContainerEvent(e);
}
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ManagedContainer.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ManagedContainer.java
index 61fa7ac2ce..4c1b6a232c 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ManagedContainer.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/container/ManagedContainer.java
@@ -419,14 +419,14 @@ public class ManagedContainer extends Lifecycle implements IManagedContainer
}
}
- @SuppressWarnings("unchecked")
@Override
public void fireEvent(IEvent event)
{
- if (event instanceof IContainerEvent)
+ if (event instanceof IContainerEvent<?>)
{
- IContainerEvent<Object> containerEvent = (IContainerEvent<Object>)event;
- if (containerEvent.isEmpty())
+ @SuppressWarnings("unchecked")
+ IContainerEvent<Object> e = (IContainerEvent<Object>)event;
+ if (e.isEmpty())
{
return;
}
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java
index f592b39e21..a423de129e 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/fsm/FiniteStateMachine.java
@@ -24,10 +24,10 @@ import java.text.MessageFormat;
*/
public abstract class FiniteStateMachine<STATE extends Enum<?>, EVENT extends Enum<?>, SUBJECT> extends Lifecycle
{
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
public static final ITransition IGNORE = new IgnoreTransition();
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
public static final ITransition FAIL = new FailTransition();
private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, FiniteStateMachine.class);
diff --git a/plugins/org.gastro.rcp.department/src/com/swtdesigner/ResourceManager.java b/plugins/org.gastro.rcp.department/src/com/swtdesigner/ResourceManager.java
index eb8277d160..b61cac8902 100644
--- a/plugins/org.gastro.rcp.department/src/com/swtdesigner/ResourceManager.java
+++ b/plugins/org.gastro.rcp.department/src/com/swtdesigner/ResourceManager.java
@@ -27,11 +27,11 @@ import java.util.Map;
* <p>
* Copyright (c) 2003 - 2007, Instantiations, Inc. <br>
* All Rights Reserved
- *
+ *
* @author scheglov_ke
* @author Dan Rubel
*/
-@SuppressWarnings("unchecked")
+@SuppressWarnings({ "rawtypes", "unchecked" })
public class ResourceManager extends SWTResourceManager
{
// //////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} stored in the file at the specified path relative to the specified class.
- *
+ *
* @param clazz
* the {@link Class} relative to which to find the image descriptor.
* @param path
@@ -57,7 +57,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} stored in the file at the specified path.
- *
+ *
* @param path
* the path to the image file.
* @return the {@link ImageDescriptor} stored in the file at the specified path.
@@ -76,7 +76,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} based on the specified {@link ImageDescriptor}.
- *
+ *
* @param descriptor
* the {@link ImageDescriptor} for the {@link Image}.
* @return the {@link Image} based on the specified {@link ImageDescriptor}.
@@ -105,7 +105,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated.
* @param decorator
@@ -119,7 +119,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated.
* @param decorator
@@ -266,7 +266,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} based on a plugin and file path.
- *
+ *
* @param plugin
* the plugin {@link Object} containing the image
* @param name
@@ -294,7 +294,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} based on a {@link Bundle} and resource entry path.
- *
+ *
* @param symbolicName
* the symbolic name of the {@link Bundle}.
* @param path
@@ -363,7 +363,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} based on a plugin and file path.
- *
+ *
* @param plugin
* the plugin {@link Object} containing the image.
* @param name
@@ -395,7 +395,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} based on a {@link Bundle} and resource entry path.
- *
+ *
* @param symbolicName
* the symbolic name of the {@link Bundle}.
* @param path
@@ -446,7 +446,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link URL} based on a plugin and file path.
- *
+ *
* @param plugin
* the plugin {@link Object} containing the file path.
* @param name
diff --git a/plugins/org.gastro.rcp.department/src/com/swtdesigner/SWTResourceManager.java b/plugins/org.gastro.rcp.department/src/com/swtdesigner/SWTResourceManager.java
index 2ffbc2c637..b83b4b6378 100644
--- a/plugins/org.gastro.rcp.department/src/com/swtdesigner/SWTResourceManager.java
+++ b/plugins/org.gastro.rcp.department/src/com/swtdesigner/SWTResourceManager.java
@@ -29,11 +29,11 @@ import java.util.Map;
* <p>
* Copyright (c) 2003 - 2007, Instantiations, Inc. <br>
* All Rights Reserved
- *
+ *
* @author scheglov_ke
* @author Dan Rubel
*/
-@SuppressWarnings("unchecked")
+@SuppressWarnings({ "rawtypes", "unchecked" })
public class SWTResourceManager
{
// //////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ public class SWTResourceManager
/**
* Returns the system {@link Color} matching the specific ID.
- *
+ *
* @param systemColorID
* the ID value for the color
* @return the system {@link Color} matching the specific ID
@@ -58,7 +58,7 @@ public class SWTResourceManager
/**
* Returns a {@link Color} given its red, green and blue component values.
- *
+ *
* @param r
* the red component of the color
* @param g
@@ -74,7 +74,7 @@ public class SWTResourceManager
/**
* Returns a {@link Color} given its RGB value.
- *
+ *
* @param rgb
* the {@link RGB} value of the color
* @return the {@link Color} matching the RGB value
@@ -117,7 +117,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} encoded by the specified {@link InputStream}.
- *
+ *
* @param stream
* the {@link InputStream} encoding the image data
* @return the {@link Image} encoded by the specified input stream
@@ -143,7 +143,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} stored in the file at the specified path.
- *
+ *
* @param path
* the path to the image file
* @return the {@link Image} stored in the file at the specified path
@@ -170,7 +170,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} stored in the file at the specified path relative to the specified class.
- *
+ *
* @param clazz
* the {@link Class} relative to which to find the image
* @param path
@@ -247,7 +247,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated
* @param decorator
@@ -261,7 +261,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated
* @param decorator
@@ -381,7 +381,7 @@ public class SWTResourceManager
/**
* Returns a {@link Font} based on its name, height and style.
- *
+ *
* @param name
* the name of the font
* @param height
@@ -398,7 +398,7 @@ public class SWTResourceManager
/**
* Returns a {@link Font} based on its name, height and style. Windows-specific strikeout and underline flags are also
* supported.
- *
+ *
* @param name
* the name of the font
* @param size
@@ -452,7 +452,7 @@ public class SWTResourceManager
/**
* Returns a bold version of the given {@link Font}.
- *
+ *
* @param baseFont
* the {@link Font} for which a bold version is desired
* @return the bold version of the given {@link Font}
diff --git a/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java b/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
index c677a62a2b..079418d744 100644
--- a/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
+++ b/plugins/org.gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
@@ -27,11 +27,11 @@ import java.util.Map;
* <p>
* Copyright (c) 2003 - 2007, Instantiations, Inc. <br>
* All Rights Reserved
- *
+ *
* @author scheglov_ke
* @author Dan Rubel
*/
-@SuppressWarnings("unchecked")
+@SuppressWarnings({ "rawtypes", "unchecked" })
public class ResourceManager extends SWTResourceManager
{
// //////////////////////////////////////////////////////////////////////////
@@ -43,7 +43,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} stored in the file at the specified path relative to the specified class.
- *
+ *
* @param clazz
* the {@link Class} relative to which to find the image descriptor.
* @param path
@@ -57,7 +57,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} stored in the file at the specified path.
- *
+ *
* @param path
* the path to the image file.
* @return the {@link ImageDescriptor} stored in the file at the specified path.
@@ -76,7 +76,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} based on the specified {@link ImageDescriptor}.
- *
+ *
* @param descriptor
* the {@link ImageDescriptor} for the {@link Image}.
* @return the {@link Image} based on the specified {@link ImageDescriptor}.
@@ -105,7 +105,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated.
* @param decorator
@@ -119,7 +119,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated.
* @param decorator
@@ -266,7 +266,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} based on a plugin and file path.
- *
+ *
* @param plugin
* the plugin {@link Object} containing the image
* @param name
@@ -294,7 +294,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link Image} based on a {@link Bundle} and resource entry path.
- *
+ *
* @param symbolicName
* the symbolic name of the {@link Bundle}.
* @param path
@@ -363,7 +363,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} based on a plugin and file path.
- *
+ *
* @param plugin
* the plugin {@link Object} containing the image.
* @param name
@@ -395,7 +395,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link ImageDescriptor} based on a {@link Bundle} and resource entry path.
- *
+ *
* @param symbolicName
* the symbolic name of the {@link Bundle}.
* @param path
@@ -446,7 +446,7 @@ public class ResourceManager extends SWTResourceManager
/**
* Returns an {@link URL} based on a plugin and file path.
- *
+ *
* @param plugin
* the plugin {@link Object} containing the file path.
* @param name
diff --git a/plugins/org.gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java b/plugins/org.gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java
index 23f9c3f575..3e857fc0ac 100644
--- a/plugins/org.gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java
+++ b/plugins/org.gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java
@@ -29,11 +29,11 @@ import java.util.Map;
* <p>
* Copyright (c) 2003 - 2007, Instantiations, Inc. <br>
* All Rights Reserved
- *
+ *
* @author scheglov_ke
* @author Dan Rubel
*/
-@SuppressWarnings("unchecked")
+@SuppressWarnings({ "rawtypes", "unchecked" })
public class SWTResourceManager
{
// //////////////////////////////////////////////////////////////////////////
@@ -45,7 +45,7 @@ public class SWTResourceManager
/**
* Returns the system {@link Color} matching the specific ID.
- *
+ *
* @param systemColorID
* the ID value for the color
* @return the system {@link Color} matching the specific ID
@@ -58,7 +58,7 @@ public class SWTResourceManager
/**
* Returns a {@link Color} given its red, green and blue component values.
- *
+ *
* @param r
* the red component of the color
* @param g
@@ -74,7 +74,7 @@ public class SWTResourceManager
/**
* Returns a {@link Color} given its RGB value.
- *
+ *
* @param rgb
* the {@link RGB} value of the color
* @return the {@link Color} matching the RGB value
@@ -117,7 +117,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} encoded by the specified {@link InputStream}.
- *
+ *
* @param stream
* the {@link InputStream} encoding the image data
* @return the {@link Image} encoded by the specified input stream
@@ -143,7 +143,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} stored in the file at the specified path.
- *
+ *
* @param path
* the path to the image file
* @return the {@link Image} stored in the file at the specified path
@@ -170,7 +170,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} stored in the file at the specified path relative to the specified class.
- *
+ *
* @param clazz
* the {@link Class} relative to which to find the image
* @param path
@@ -247,7 +247,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated
* @param decorator
@@ -261,7 +261,7 @@ public class SWTResourceManager
/**
* Returns an {@link Image} composed of a base image decorated by another image.
- *
+ *
* @param baseImage
* the base {@link Image} that should be decorated
* @param decorator
@@ -382,7 +382,7 @@ public class SWTResourceManager
/**
* Returns a {@link Font} based on its name, height and style.
- *
+ *
* @param name
* the name of the font
* @param height
@@ -399,7 +399,7 @@ public class SWTResourceManager
/**
* Returns a {@link Font} based on its name, height and style. Windows-specific strikeout and underline flags are also
* supported.
- *
+ *
* @param name
* the name of the font
* @param size
@@ -453,7 +453,7 @@ public class SWTResourceManager
/**
* Returns a bold version of the given {@link Font}.
- *
+ *
* @param baseFont
* the {@link Font} for which a bold version is desired
* @return the bold version of the given {@link Font}

Back to the top