Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-08-30 15:09:09 +0000
committeratikhomirov2006-08-30 15:09:09 +0000
commit01cdd801296685ff74a408b0a5eda348d221fa44 (patch)
tree80de40b8f7f182b7e71d718cab3e68dbe4b8b3c1 /plugins/org.eclipse.gmf.graphdef.codegen
parentef04f90c55aff03d9833afe50d7af7ad10fe8c85 (diff)
downloadorg.eclipse.gmf-tooling-01cdd801296685ff74a408b0a5eda348d221fa44.tar.gz
org.eclipse.gmf-tooling-01cdd801296685ff74a408b0a5eda348d221fa44.tar.xz
org.eclipse.gmf-tooling-01cdd801296685ff74a408b0a5eda348d221fa44.zip
avoid 'unchecked' warnings
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/GraphDefDispatcher.java4
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StaticFieldsManager.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/GraphDefDispatcher.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/GraphDefDispatcher.java
index 0095debe8..5cae2833e 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/GraphDefDispatcher.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/GraphDefDispatcher.java
@@ -114,10 +114,10 @@ public class GraphDefDispatcher extends DispatcherImpl {
* reset for new compilation unit generation.
*/
public static class AuxiliaryDataStorage {
- private final HashMap myData;
+ private final HashMap<EObject, Object> myData;
public AuxiliaryDataStorage(){
- myData = new HashMap();
+ myData = new HashMap<EObject, Object>();
}
public void registerData(EObject owner, Object data){
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StaticFieldsManager.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StaticFieldsManager.java
index 9499bf30a..5c3309aff 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StaticFieldsManager.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/StaticFieldsManager.java
@@ -18,8 +18,8 @@ import java.util.Iterator;
import java.util.Map;
public class StaticFieldsManager {
- private final Map/*<String, StaticField>*/ myFields = new HashMap/*<String, StaticField>*/();
- private final Map/*<String, StaticField>*/ myFieldsRO = Collections.unmodifiableMap(myFields);
+ private final Map<String, StaticField> myFields = new HashMap<String, StaticField>();
+ private final Map<String, StaticField> myFieldsRO = Collections.unmodifiableMap(myFields);
private final String myDeclaringClassPrefix;
public StaticFieldsManager(String declaringClassName){
@@ -47,7 +47,7 @@ public class StaticFieldsManager {
myFields.clear();
}
- public Iterator allFields() {
+ public Iterator<StaticField> allFields() {
return myFieldsRO.values().iterator();
}

Back to the top