summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkthoms2009-08-03 07:16:21 (EDT)
committer kthoms2009-08-03 07:16:21 (EDT)
commitc36a776dafb82c97b421ef77c3d4df3648a4932b (patch)
tree0ba2707dde74408053a8aea7dba9758b860d67e7
parent12cb916f1768f6c2927512d975d46e9e2e824036 (diff)
downloadorg.eclipse.mwe-c36a776dafb82c97b421ef77c3d4df3648a4932b.zip
org.eclipse.mwe-c36a776dafb82c97b421ef77c3d4df3648a4932b.tar.gz
org.eclipse.mwe-c36a776dafb82c97b421ef77c3d4df3648a4932b.tar.bz2
removed compiler warnings
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/contentassist/impl/xml/TagContentProposalComputer.java2
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/editor/WorkflowEditor.java2
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/factories/FactoryNotInitializedException.java5
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/marker/MarkerManager.java4
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/OutlineContentProvider.java2
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/WorkflowContentOutlinePage.java2
-rw-r--r--plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/parser/ParserProblemException.java4
8 files changed, 27 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.mwe.ui.editor/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..5f29881
--- /dev/null
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,12 @@
+#Mon Aug 03 13:12:14 CEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/contentassist/impl/xml/TagContentProposalComputer.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/contentassist/impl/xml/TagContentProposalComputer.java
index b6e7498..382ee77 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/contentassist/impl/xml/TagContentProposalComputer.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/contentassist/impl/xml/TagContentProposalComputer.java
@@ -45,7 +45,7 @@ public class TagContentProposalComputer extends AbstractContentProposalComputer
return isTag();
}
- protected Set<String> createDefaultProposals(@SuppressWarnings("unused") final int offset) {
+ protected Set<String> createDefaultProposals(final int offset) {
final Set<String> resultSet = new HashSet<String>();
for (final String s : DEFAULT_PROPOSALS) {
resultSet.add(s);
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/editor/WorkflowEditor.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/editor/WorkflowEditor.java
index 3ccb847..8e8196a 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/editor/WorkflowEditor.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/editor/WorkflowEditor.java
@@ -424,7 +424,7 @@ public class WorkflowEditor extends TextEditor {
if (model == null)
return null;
- Iterator iterator;
+ Iterator<?> iterator;
if (model instanceof IAnnotationModelExtension2) {
iterator = ((IAnnotationModelExtension2) model).getAnnotationIterator(offset, length, true, true);
}
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/factories/FactoryNotInitializedException.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/factories/FactoryNotInitializedException.java
index 2674641..ddeccdf 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/factories/FactoryNotInitializedException.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/factories/FactoryNotInitializedException.java
@@ -13,6 +13,11 @@ package org.eclipse.emf.mwe.ui.internal.editor.factories;
public class FactoryNotInitializedException extends RuntimeException {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 4200576521690442515L;
+
public FactoryNotInitializedException() {
super();
}
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/marker/MarkerManager.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/marker/MarkerManager.java
index 28359c9..5171d7c 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/marker/MarkerManager.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/marker/MarkerManager.java
@@ -38,7 +38,7 @@ public final class MarkerManager {
private static final String ERROR_MARKER_ID = "org.eclipse.emf.mwe.ui.editor.workflowerror";
- private static final Set<Map> knownMarkers = new HashSet<Map>();
+ private static final Set<Map<String,Object>> knownMarkers = new HashSet<Map<String,Object>>();
/**
* Don't allow instantiation.
@@ -122,7 +122,7 @@ public final class MarkerManager {
if (document == null || message == null || range == null)
throw new IllegalArgumentException();
- final Map map = new HashMap();
+ final Map<String,Object> map = new HashMap<String,Object>();
Integer lineNumber;
try {
if (range.getStartOffset() < document.getLength()) {
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/OutlineContentProvider.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/OutlineContentProvider.java
index 6ce8953..4f297bf 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/OutlineContentProvider.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/OutlineContentProvider.java
@@ -114,7 +114,7 @@ public class OutlineContentProvider implements ITreeContentProvider {
}
}
- public void setInput(@SuppressWarnings("unused") final IEditorInput input) {
+ public void setInput(final IEditorInput input) {
// do nothing
}
}
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/WorkflowContentOutlinePage.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/WorkflowContentOutlinePage.java
index 1001a2f..d2aa32b 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/WorkflowContentOutlinePage.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/outline/WorkflowContentOutlinePage.java
@@ -91,7 +91,7 @@ public class WorkflowContentOutlinePage extends ContentOutlinePage {
ISelection s = viewer.getSelection();
if (s instanceof IStructuredSelection) {
final IStructuredSelection ss = (IStructuredSelection) s;
- final List elements = ss.toList();
+ final List<?> elements = ss.toList();
if (!elements.contains(element)) {
TreePath path = null;
if (element != null) {
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/parser/ParserProblemException.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/parser/ParserProblemException.java
index 4e90ccf..8974da7 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/parser/ParserProblemException.java
+++ b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/parser/ParserProblemException.java
@@ -25,6 +25,10 @@ import org.eclipse.emf.mwe.ui.internal.editor.elements.IWorkflowAttribute;
public class ParserProblemException extends RuntimeException {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -746617143901049067L;
private Queue<AbstractWorkflowElement> elementTrace = new LinkedList<AbstractWorkflowElement>();
public ParserProblemException() {