Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authorbvosburgh2007-05-15 16:02:05 +0000
committerbvosburgh2007-05-15 16:02:05 +0000
commitd45d10743dc2cee23d892f15881af3398b3f829e (patch)
tree98e3e81e7336ea7bf6c526c22c31a6eda6cd32e2 /jpa
parent015815832c2c48f6235a32ca109e85d46de247a6 (diff)
downloadwebtools.dali-d45d10743dc2cee23d892f15881af3398b3f829e.tar.gz
webtools.dali-d45d10743dc2cee23d892f15881af3398b3f829e.tar.xz
webtools.dali-d45d10743dc2cee23d892f15881af3398b3f829e.zip
added appropriate parameter types
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/mappings/JavaCascade.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/mappings/JavaCascade.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/mappings/JavaCascade.java
index 575052d90a..5be748d61b 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/mappings/JavaCascade.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/mappings/JavaCascade.java
@@ -148,7 +148,7 @@ public class JavaCascade extends JavaEObject implements ICascade
private Attribute attribute;
- private AnnotationElementAdapter cascadeAdapter;
+ private AnnotationElementAdapter<String[]> cascadeAdapter;
private DeclarationAnnotationElementAdapter<String[]> cascadeDeclarationAdapter;
@@ -156,7 +156,7 @@ public class JavaCascade extends JavaEObject implements ICascade
super();
this.attribute = attribute;
this.cascadeDeclarationAdapter = cascadeAdapter;
- this.cascadeAdapter = new ShortCircuitArrayAnnotationElementAdapter(this.attribute, cascadeAdapter);
+ this.cascadeAdapter = new ShortCircuitArrayAnnotationElementAdapter<String>(this.attribute, cascadeAdapter);
}
@Override
@@ -184,7 +184,7 @@ public class JavaCascade extends JavaEObject implements ICascade
}
private void updateJavaAnnotation(boolean isSet, CascadeType cascadeType) {
- String[] javaValue = (String[]) this.cascadeAdapter.getValue();
+ String[] javaValue = this.cascadeAdapter.getValue();
CascadeType[] cascadeTypes = CascadeType.fromJavaAnnotationValue(javaValue);
Collection<CascadeType> cascadeCollection = CollectionTools.collection(cascadeTypes);
if (cascadeCollection.contains(cascadeType)) {
@@ -208,7 +208,7 @@ public class JavaCascade extends JavaEObject implements ICascade
}
}
- protected AnnotationElementAdapter getCascadeAdapter() {
+ protected AnnotationElementAdapter<String[]> getCascadeAdapter() {
return this.cascadeAdapter;
}
@@ -570,7 +570,7 @@ public class JavaCascade extends JavaEObject implements ICascade
}
public void updateFromJava(CompilationUnit astRoot) {
- String[] javaValue = (String[]) this.cascadeAdapter.getValue(astRoot);
+ String[] javaValue = this.cascadeAdapter.getValue(astRoot);
CascadeType[] cascadeTypes = CascadeType.fromJavaAnnotationValue(javaValue);
Collection<CascadeType> cascadeCollection = CollectionTools.collection(cascadeTypes);
setAll(cascadeCollection.contains(CascadeType.ALL));
@@ -579,4 +579,4 @@ public class JavaCascade extends JavaEObject implements ICascade
setRemove(cascadeCollection.contains(CascadeType.REMOVE));
setRefresh(cascadeCollection.contains(CascadeType.REFRESH));
}
-} // JavaCascade
+}

Back to the top