diff options
37 files changed, 7 insertions, 70 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollection.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollection.java index 8de7f60d9e8..9e8ed3d4251 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollection.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollection.java @@ -31,11 +31,9 @@ import java.util.concurrent.ConcurrentHashMap; public class HashCollection<K, V> { private boolean isSynchronized; - @SuppressWarnings("unchecked") private Class<? extends Collection> collectionType; private Map<K, Collection<V>> map; - @SuppressWarnings("unchecked") public static final Class<? extends Collection> DEFAULT_COLLECTION_TYPE = ArrayList.class; /******************************************************************************************************************** @@ -49,7 +47,6 @@ public class HashCollection<K, V> { * @param collectionType The type of collection to use to as the values within the HashMap. * @see HashMap#HashMap(int, float) */ - @SuppressWarnings("unchecked") public HashCollection(boolean isSynchronized, Class<? extends Collection> collectionType, int initialCapacity, float loadFactor) { if (isSynchronized) { @@ -69,7 +66,6 @@ public class HashCollection<K, V> { * @param collectionType - The type of collection to use to as the values within the HashMap. * @see HashMap#HashMap(int) */ - @SuppressWarnings("unchecked") public HashCollection(boolean isSynchronized, Class<? extends Collection> collectionType, int initialCapacity) { if (isSynchronized) { map = new ConcurrentHashMap<K, Collection<V>>(initialCapacity); @@ -88,7 +84,6 @@ public class HashCollection<K, V> { * @param collectionType - The type of collection to use to as the values within the HashMap. * @see HashMap#HashMap() */ - @SuppressWarnings("unchecked") public HashCollection(boolean isSynchronized, Class<? extends Collection> collectionType) { if (isSynchronized) { map = new ConcurrentHashMap<K, Collection<V>>(); diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionHeavy.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionHeavy.java index f08e2901f2e..cdd3eef147d 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionHeavy.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionHeavy.java @@ -39,7 +39,6 @@ public class HashCollectionHeavy<K, V> extends HashCollectionPlus<K, V, Object> /** * @see HashCollectionPlus#HashCollectionPlus(boolean, Class, int, float, IPlusProvider) */ - @SuppressWarnings("unchecked") public HashCollectionHeavy(boolean isSynchronized, Class<? extends Collection> collectionType, int initialCapacity, float loadFactor) { super(isSynchronized, collectionType, initialCapacity, loadFactor, provider); } @@ -47,7 +46,6 @@ public class HashCollectionHeavy<K, V> extends HashCollectionPlus<K, V, Object> /** * @see HashCollectionPlus#HashCollectionPlus(boolean, Class, int, IPlusProvider) */ - @SuppressWarnings("unchecked") public HashCollectionHeavy(boolean isSynchronized, Class<? extends Collection> collectionType, int initialCapacity) { super(isSynchronized, collectionType, initialCapacity, provider); } @@ -55,7 +53,6 @@ public class HashCollectionHeavy<K, V> extends HashCollectionPlus<K, V, Object> /** * @see HashCollectionPlus#HashCollectionPlus(boolean, Class, IPlusProvider) */ - @SuppressWarnings("unchecked") public HashCollectionHeavy(boolean isSynchronized, Class<? extends Collection> collectionType) { super(isSynchronized, collectionType, provider); } diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionPlus.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionPlus.java index d507e3a4e7f..5f033a4576e 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionPlus.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HashCollectionPlus.java @@ -35,12 +35,10 @@ import java.util.concurrent.ConcurrentHashMap; public class HashCollectionPlus<K, V, O> { private boolean isSynchronized; - @SuppressWarnings("unchecked") private Class<? extends Collection> collectionType; private IPlusProvider<O> plusProvider; private Map<K, Pair<Collection<V>, O>> map; - @SuppressWarnings("unchecked") public static final Class<? extends Collection> DEFAULT_COLLECTION_TYPE = ArrayList.class; /******************************************************************************************************************** @@ -54,7 +52,6 @@ public class HashCollectionPlus<K, V, O> { * @param collectionType The type of collection to use to as the values within the HashMap. * @see HashMap#HashMap(int, float) */ - @SuppressWarnings("unchecked") public HashCollectionPlus(boolean isSynchronized, Class<? extends Collection> collectionType, int initialCapacity, float loadFactor, IPlusProvider<O> plusProvider) { if (isSynchronized) { @@ -75,7 +72,6 @@ public class HashCollectionPlus<K, V, O> { * @param collectionType - The type of collection to use to as the values within the HashMap. * @see HashMap#HashMap(int) */ - @SuppressWarnings("unchecked") public HashCollectionPlus(boolean isSynchronized, Class<? extends Collection> collectionType, int initialCapacity, IPlusProvider<O> plusProvider) { if (isSynchronized) { map = new ConcurrentHashMap<K, Pair<Collection<V>, O>>(initialCapacity); @@ -95,7 +91,6 @@ public class HashCollectionPlus<K, V, O> { * @param collectionType - The type of collection to use to as the values within the HashMap. * @see HashMap#HashMap() */ - @SuppressWarnings("unchecked") public HashCollectionPlus(boolean isSynchronized, Class<? extends Collection> collectionType, IPlusProvider<O> plusProvider) { if (isSynchronized) { map = new ConcurrentHashMap<K, Pair<Collection<V>, O>>(); diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStore.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStore.java index 4f72f7a73b0..3e7dd32d11e 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStore.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/PropertyStore.java @@ -261,21 +261,18 @@ public class PropertyStore implements IPropertyStore, Serializable { } @Override - @SuppressWarnings("unchecked") public Set<String> arrayKeySet() { List<String> items = Collections.castAll(this.storageArrays.keySet()); return Collections.toSet(items); } @Override - @SuppressWarnings("unchecked") public Set<String> keySet() { List<String> items = Collections.castAll(this.storageData.keySet()); return Collections.toSet(items); } @Override - @SuppressWarnings("unchecked") public Set<String> innerStoresKeySet() { List<String> items = Collections.castAll(this.storageProperties.keySet()); return Collections.toSet(items); diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/XmlTransformAsProcess.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/XmlTransformAsProcess.java index 238399b049f..6feb54a4bb6 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/XmlTransformAsProcess.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/XmlTransformAsProcess.java @@ -46,7 +46,6 @@ public class XmlTransformAsProcess { outputFromNetwork = null; } - @SuppressWarnings("unchecked") private URL getClassLocation(final Class classToFind) { URL result = null; if (classToFind == null) { diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/discovery/OseeJiniConfiguration.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/discovery/OseeJiniConfiguration.java index bed42f1738d..60a9ce53395 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/discovery/OseeJiniConfiguration.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/discovery/OseeJiniConfiguration.java @@ -31,20 +31,17 @@ public class OseeJiniConfiguration implements Configuration { } @Override - @SuppressWarnings("unchecked") public Object getEntry(String arg0, String arg1, Class arg2) throws ConfigurationException { return config.getEntry(arg0, arg1, arg2); } @Override - @SuppressWarnings("unchecked") public Object getEntry(String arg0, String arg1, Class arg2, Object arg3) throws ConfigurationException { Object o = config.getEntry(arg0, arg1, arg2, arg3); return o; } @Override - @SuppressWarnings("unchecked") public Object getEntry(String arg0, String arg1, Class arg2, Object arg3, Object arg4) throws ConfigurationException { return config.getEntry(arg0, arg1, arg2, arg3, arg4); } diff --git a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java index 49d7d449e6f..68a11ccd5af 100644 --- a/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java +++ b/plugins/org.eclipse.osee.framework.jini/src/org/eclipse/osee/framework/jini/service/core/JiniService.java @@ -87,7 +87,6 @@ public abstract class JiniService implements IService { return registerService(entry, null); } - @SuppressWarnings("unchecked") public Entry[] registerService(Entry[] entry, Dictionary dictionary) { try { System.setSecurityManager(new RelaxedSecurity()); diff --git a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java index a9fa56198da..9a33f007cd7 100644 --- a/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java +++ b/plugins/org.eclipse.osee.framework.messaging.event.skynet/src/org/eclipse/osee/framework/messaging/event/skynet/service/SkynetEventService.java @@ -67,7 +67,6 @@ public class SkynetEventService extends JiniService implements ISkynetEventServi return defaultEventFilter; } - @SuppressWarnings("unchecked") private void registerWithJini(String dbConfig) throws Exception { jiniClassServer = JiniClassServer.getInstance(); jiniClassServer.addResourceFinder(new BundleResourceFinder(new String[] { diff --git a/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditor.java b/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditor.java index f61c3df8a8f..1e656861440 100644 --- a/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditor.java +++ b/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditor.java @@ -92,7 +92,6 @@ public class BranchGraphEditor extends GraphicalEditorWithFlyoutPalette { Jobs.runInJob(task.getName(), task, Activator.class, Activator.PLUGIN_ID, true); } - @SuppressWarnings("unchecked") @Override public Object getAdapter(Class adapter) { if (adapter == GraphicalViewer.class || adapter == EditPartViewer.class) { diff --git a/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java b/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java index 39b4bea7a7d..943771cfcf2 100644 --- a/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java +++ b/plugins/org.eclipse.osee.framework.ui.branch.graph/src/org/eclipse/osee/framework/ui/branch/graph/core/BranchGraphEditorInput.java @@ -82,7 +82,6 @@ public class BranchGraphEditorInput implements IEditorInput { return super.equals(obj); } - @SuppressWarnings("unchecked") @Override public Object getAdapter(Class adapter) { return null; diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditor.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditor.java index 70f35d6e06b..86fe013e914 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditor.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditor.java @@ -101,7 +101,6 @@ public class ODMEditor extends GraphicalEditorWithFlyoutPalette { public void doSave(IProgressMonitor monitor) { } - @SuppressWarnings("unchecked") @Override public Object getAdapter(Class adapter) { if (adapter == GraphicalViewer.class || adapter == EditPartViewer.class) { diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditorInput.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditorInput.java index db4c146e4bb..31187495a87 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditorInput.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/core/ODMEditorInput.java @@ -65,7 +65,6 @@ public class ODMEditorInput implements IEditorInput { } @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { return null; } diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/NodeModel.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/NodeModel.java index 075ee042b66..162b677a212 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/NodeModel.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/model/NodeModel.java @@ -22,12 +22,9 @@ public abstract class NodeModel extends Model { private final Point location; private final Dimension size; - @SuppressWarnings("unchecked") private final List<ConnectionModel> sourceConnections; - @SuppressWarnings("unchecked") private final List<ConnectionModel> targetConnections; - @SuppressWarnings("unchecked") public NodeModel() { this.location = new Point(50, 50); this.size = new Dimension(100, 100); @@ -36,7 +33,6 @@ public abstract class NodeModel extends Model { } - @SuppressWarnings("unchecked") void addConnection(ConnectionModel conn) { if (conn != null && conn.getSource() != conn.getTarget()) { if (conn.getSource() == this) { @@ -65,17 +61,14 @@ public abstract class NodeModel extends Model { return getSize().height; } - @SuppressWarnings("unchecked") public List<ConnectionModel> getSourceConnections() { return new ArrayList<ConnectionModel>(sourceConnections); } - @SuppressWarnings("unchecked") public List<ConnectionModel> getTargetConnections() { return new ArrayList<ConnectionModel>(targetConnections); } - @SuppressWarnings("unchecked") void removeConnection(ConnectionModel conn) { if (conn != null) { if (conn.getSource() == this) { diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ArtifactEditPart.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ArtifactEditPart.java index b05da52b6a1..326f6cf13ed 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ArtifactEditPart.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ArtifactEditPart.java @@ -45,7 +45,6 @@ import org.eclipse.osee.framework.ui.data.model.editor.model.helper.ContainerMod */ public class ArtifactEditPart extends DataTypeEditPart { - @SuppressWarnings("unchecked") private List children; public ArtifactEditPart(Object model) { diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/BaseEditPart.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/BaseEditPart.java index 399c128c3e0..9ea26291cf9 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/BaseEditPart.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/BaseEditPart.java @@ -120,7 +120,6 @@ public abstract class BaseEditPart extends AbstractGraphicalEditPart { } @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class key) { if (IPropertySource.class == key) { return PropertySourceFactory.getPropertySource(getModel()); diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ConnectionEditPart.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ConnectionEditPart.java index 8846cf1104b..c31848fbc15 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ConnectionEditPart.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ConnectionEditPart.java @@ -119,7 +119,6 @@ public class ConnectionEditPart extends AbstractConnectionEditPart { } @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { if (IPropertySource.class == adapter) { return PropertySourceFactory.getPropertySource(getModel()); diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ContainerEditPart.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ContainerEditPart.java index 16565cc5553..a87f4398987 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ContainerEditPart.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/ContainerEditPart.java @@ -38,7 +38,6 @@ public class ContainerEditPart extends AbstractGraphicalEditPart { } @Override - @SuppressWarnings("unchecked") protected List getModelChildren() { if (getModel() instanceof ContainerModel) { return ((ContainerModel) getModel()).getChildren(); diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/DiagramEditPart.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/DiagramEditPart.java index 5d2f3b117e6..c51b2fed570 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/DiagramEditPart.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/DiagramEditPart.java @@ -90,7 +90,6 @@ public class DiagramEditPart extends AbstractGraphicalEditPart implements LayerC } @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { if (SnapToHelper.class == adapter) { Object snapPropertObject = getViewer().getProperty(SnapToGeometry.PROPERTY_SNAP_ENABLED); @@ -100,7 +99,6 @@ public class DiagramEditPart extends AbstractGraphicalEditPart implements LayerC } @Override - @SuppressWarnings("unchecked") protected List getModelChildren() { return ((ODMDiagram) getModel()).getContent(); } diff --git a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/NodeModelEditPart.java b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/NodeModelEditPart.java index d62420622e5..b885a7ada07 100644 --- a/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/NodeModelEditPart.java +++ b/plugins/org.eclipse.osee.framework.ui.data.model.editor/src/org/eclipse/osee/framework/ui/data/model/editor/part/NodeModelEditPart.java @@ -81,13 +81,11 @@ public abstract class NodeModelEditPart extends BaseEditPart implements NodeEdit } @Override - @SuppressWarnings("unchecked") protected List<ConnectionModel> getModelSourceConnections() { return getNodeModel().getSourceConnections(); } @Override - @SuppressWarnings("unchecked") protected List<ConnectionModel> getModelTargetConnections() { return getNodeModel().getTargetConnections(); } diff --git a/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/actions/LookupUpdates.java b/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/actions/LookupUpdates.java index c41306225e5..5a5bced9f77 100644 --- a/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/actions/LookupUpdates.java +++ b/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/actions/LookupUpdates.java @@ -79,7 +79,6 @@ public class LookupUpdates implements IRegistrarListener { } @Override - @SuppressWarnings("unchecked") public void reggieRemoved(List<ServiceRegistrar> serviceRegistrars) { // System.out.println("Reggie Removed: "); Set<ServiceID> cachedReggies = handlerMap.keySet(); diff --git a/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/TreeNode.java b/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/TreeNode.java index 0fb31e7cabf..7d96a029ab0 100644 --- a/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/TreeNode.java +++ b/plugins/org.eclipse.osee.framework.ui.swt/src/org/eclipse/osee/framework/ui/swt/TreeNode.java @@ -103,7 +103,6 @@ public class TreeNode implements ITreeNode, Serializable { } @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { if (adapter == null) { throw new IllegalArgumentException("adapter can not be null"); diff --git a/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AJavaProject.java b/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AJavaProject.java index 99e8c045999..474bad23160 100644 --- a/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AJavaProject.java +++ b/plugins/org.eclipse.osee.framework.ui.ws/src/org/eclipse/osee/framework/ui/ws/AJavaProject.java @@ -35,6 +35,7 @@ public final class AJavaProject { private static final Matcher JAVA_PACKAGE_MATCHER = JAVA_PACKAGE_PATTERN.matcher(""); private AJavaProject() { + // Private to prevent cons } private static IClasspathEntry[] localGetResolvedClasspath(IJavaProject javaProject) throws JavaModelException { diff --git a/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/LibraryChangeProvider.java b/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/LibraryChangeProvider.java index f9c4a082723..a0fc0063521 100644 --- a/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/LibraryChangeProvider.java +++ b/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/LibraryChangeProvider.java @@ -33,7 +33,6 @@ public class LibraryChangeProvider<T extends JarCollectionNature> { resetClasspath(); } - @SuppressWarnings("restriction") private void resetClasspath() { for (IUserLibListener listener : listeners) { listener.libraryChanged(); diff --git a/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/OteClasspathContainer.java b/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/OteClasspathContainer.java index e84de542fc6..c0ed7b81faf 100644 --- a/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/OteClasspathContainer.java +++ b/plugins/org.eclipse.osee.ote.container/src/org/eclipse/osee/ote/container/OteClasspathContainer.java @@ -169,7 +169,6 @@ public class OteClasspathContainer implements IClasspathContainer, IUserLibListe } - @SuppressWarnings("restriction") @Override public void libraryChanged() { } diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/interfaces/IReportData.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/interfaces/IReportData.java index d00c3bf1c3e..f3a96abd9c4 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/interfaces/IReportData.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/interfaces/IReportData.java @@ -15,12 +15,10 @@ import org.eclipse.osee.framework.jdk.core.reportdata.ReportDataListener; public interface IReportData { // void addQueueListener(ReportDataListener listener, List<TestEnvironmentCommand> cmds); - @SuppressWarnings("unchecked") void addQueueListener(ReportDataListener listener, List cmds); void removeQueueListener(ReportDataListener listener); // void updateQueueListeners(List<TestEnvironmentCommand> cmds); - @SuppressWarnings("unchecked") void updateQueueListeners(List cmds); } diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModel.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModel.java index 8fcc1eff8cf..1265d6c4477 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModel.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModel.java @@ -23,12 +23,10 @@ public interface IModel extends Remote { void turnModelOff() throws RemoteException; - @SuppressWarnings("unchecked") void init(TestEnvironment testEnvironment, ModelKey key) throws RemoteException; ModelState getState() throws RemoteException; - @SuppressWarnings("unchecked") <CLASSTYPE extends IModel> ModelKey getKey() throws RemoteException; void dispose() throws RemoteException; diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelKeyFactory.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelKeyFactory.java index ee1bd19bc7f..151e08e366d 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelKeyFactory.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelKeyFactory.java @@ -16,6 +16,5 @@ import java.util.Collection; * @author Andrew M. Finkbeiner */ public interface IModelKeyFactory { - @SuppressWarnings("unchecked") Collection<ModelKey> getModelKeys(); } diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelListener.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelListener.java index dcd0251eea7..9dd542a96f3 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelListener.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelListener.java @@ -13,7 +13,6 @@ package org.eclipse.osee.ote.core.model; import java.rmi.Remote; import java.rmi.RemoteException; -@SuppressWarnings("unchecked") /** * @author Andrew M. Finkbeiner */ diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManager.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManager.java index e3fd4621b89..3218c94b9dd 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManager.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManager.java @@ -13,7 +13,6 @@ package org.eclipse.osee.ote.core.model; import java.rmi.RemoteException; import java.util.List; -@SuppressWarnings("unchecked") /** * @author Andrew M. Finkbeiner */ @@ -30,7 +29,7 @@ public interface IModelManager { @Deprecated void notifyModeStateListener(ModelKey key, ModelState state) throws RemoteException; - + List<ModelKey> getRegisteredModels(); void releaseReference(IModel model); @@ -49,6 +48,7 @@ public interface IModelManager { /** * Releases a single reference of the model given by the class. + * * @param key */ void releaseReference(ModelKey<?> key); diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManagerRemote.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManagerRemote.java index 33401990dc1..c2f7f2b6e00 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManagerRemote.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/IModelManagerRemote.java @@ -14,7 +14,6 @@ import java.rmi.Remote; import java.rmi.RemoteException; import java.util.List; -@SuppressWarnings("unchecked") /** * @author Andrew M. Finkbeiner */ diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/ModelKey.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/ModelKey.java index 27a94ca75ca..aa114f061da 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/ModelKey.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/model/ModelKey.java @@ -12,11 +12,11 @@ package org.eclipse.osee.ote.core.model; import java.io.Serializable; -@SuppressWarnings("unchecked") /** - * This key is used by the model manager to search for a model already instanciated for this environment. - * Each of the getter functions MUST return a unique identifier for the specific model they represent ( or null if - * that particular type isn't available). + * This key is used by the model manager to search for a model already instanciated for this environment. Each of the + * getter functions MUST return a unique identifier for the specific model they represent ( or null if that particular + * type isn't available). + * * @author Andrew M. Finkbeiner */ public class ModelKey<M extends IModel> implements Serializable, Comparable { diff --git a/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/data/MessageData.java b/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/data/MessageData.java index 0bc32d1731d..3c66d8a9fbe 100644 --- a/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/data/MessageData.java +++ b/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/data/MessageData.java @@ -62,7 +62,6 @@ public abstract class MessageData implements DataReaderListener, DataWriterListe private final MemoryResource mem; private final String typeName; private final String name; - @SuppressWarnings("unchecked") private final CopyOnWriteArrayList<Message> messages = new CopyOnWriteArrayList<Message>(); private final List<IMessageSendListener> messageSendListeners = new CopyOnWriteArrayList<IMessageSendListener>(); private final int defaultDataByteSize; @@ -144,7 +143,6 @@ public abstract class MessageData implements DataReaderListener, DataWriterListe /** * adds a {@link Message} who are mapped to this data object */ - @SuppressWarnings("unchecked") public void addMessage(Message message) { if (!messages.contains(message)) { messages.add(message); @@ -157,7 +155,6 @@ public abstract class MessageData implements DataReaderListener, DataWriterListe * * @return a collection of messages */ - @SuppressWarnings("unchecked") public Collection<Message> getMessages() { return new ArrayList<Message>(messages); } @@ -229,7 +226,6 @@ public abstract class MessageData implements DataReaderListener, DataWriterListe /** * Notifies all {@link Message}s that have this registered as a data source of the update */ - @SuppressWarnings("unchecked") public void notifyListeners() throws MessageSystemException { final DataType memType = getType(); for (Message message : messages) { @@ -539,13 +535,11 @@ public abstract class MessageData implements DataReaderListener, DataWriterListe private final IMessageDisposeListener disposeListener = new IMessageDisposeListener() { @Override - @SuppressWarnings("unchecked") public void onPreDispose(Message message) { messages.remove(message); } @Override - @SuppressWarnings("unchecked") public void onPostDispose(Message message) { } diff --git a/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/interfaces/ITestEnvironmentMessageSystemAccessor.java b/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/interfaces/ITestEnvironmentMessageSystemAccessor.java index df2fff1f7fb..c3dccb9c35a 100644 --- a/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/interfaces/ITestEnvironmentMessageSystemAccessor.java +++ b/plugins/org.eclipse.osee.ote.message/src/org/eclipse/osee/ote/message/interfaces/ITestEnvironmentMessageSystemAccessor.java @@ -18,7 +18,6 @@ import org.eclipse.osee.ote.message.enums.DataType; * @author Andrew M. Finkbeiner */ public interface ITestEnvironmentMessageSystemAccessor extends ITestEnvironmentAccessor { - @SuppressWarnings("unchecked") IMessageManager getMsgManager(); boolean isPhysicalTypeAvailable(DataType physicalType); diff --git a/plugins/org.eclipse.osee.ote.server/src/org/eclipse/osee/ote/server/internal/RemoteTestEnvironment.java b/plugins/org.eclipse.osee.ote.server/src/org/eclipse/osee/ote/server/internal/RemoteTestEnvironment.java index 5c3204cfa29..92c3d34f337 100644 --- a/plugins/org.eclipse.osee.ote.server/src/org/eclipse/osee/ote/server/internal/RemoteTestEnvironment.java +++ b/plugins/org.eclipse.osee.ote.server/src/org/eclipse/osee/ote/server/internal/RemoteTestEnvironment.java @@ -431,7 +431,6 @@ public class RemoteTestEnvironment implements ITestEnvironmentMessageSystem { } @Override - @SuppressWarnings("unchecked") public void releaseAllReferences(ModelKey key) throws RemoteException { env.getModelManager().releaseAllReferences(key); } diff --git a/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/viewers/data/DataItemContentProvider.java b/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/viewers/data/DataItemContentProvider.java index 489fa86cf2b..ebab0537b71 100644 --- a/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/viewers/data/DataItemContentProvider.java +++ b/plugins/org.eclipse.osee.ote.ui.define/src/org/eclipse/osee/ote/ui/define/viewers/data/DataItemContentProvider.java @@ -22,7 +22,6 @@ public class DataItemContentProvider implements ITreeContentProvider { private static final Object[] EMPTY_ARRAY = new Object[0]; @Override - @SuppressWarnings("unchecked") public Object[] getChildren(Object parentElement) { if (parentElement instanceof Collection) { return ((Collection) parentElement).toArray(); diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditorInput.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditorInput.java index fff6b88038a..f16a52dc442 100644 --- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditorInput.java +++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerEditorInput.java @@ -64,7 +64,6 @@ public class TestManagerEditorInput implements IFileEditorInput, IPersistableEle * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) */ @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { return iFile.getAdapter(adapter); } @@ -119,7 +118,6 @@ public class TestManagerEditorInput implements IFileEditorInput, IPersistableEle return new IStorage() { @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { return iFile.getAdapter(adapter); } diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerInput.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerInput.java index f064716159b..b1eb28bb47e 100644 --- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerInput.java +++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/TestManagerInput.java @@ -52,7 +52,6 @@ public class TestManagerInput implements IEditorInput { } @Override - @SuppressWarnings("unchecked") public Object getAdapter(Class adapter) { return null; } |