Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2012-04-13 18:34:04 +0000
committerkmoore2012-04-13 18:34:04 +0000
commit9b9be28ee805ed501bc9e585d685952480af9c76 (patch)
tree96baccb78c2c8f6269dad1a122dbeb7409db0653 /jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
parentf16cf6bb32b007616611d79aee00df7946521507 (diff)
downloadwebtools.dali-9b9be28ee805ed501bc9e585d685952480af9c76.tar.gz
webtools.dali-9b9be28ee805ed501bc9e585d685952480af9c76.tar.xz
webtools.dali-9b9be28ee805ed501bc9e585d685952480af9c76.zip
removed unnecessary casting to JavaPersistent
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
index 62a378c3df..62b0234291 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
@@ -527,9 +527,8 @@ public abstract class SpecifiedOrmPersistentAttribute
}
protected JavaPersistentAttribute.JpaContainerDefinition getJpaContainerDefinition() {
- JavaPersistentAttribute2_0 javaAttribute = (JavaPersistentAttribute2_0) this.javaPersistentAttribute;
- return (javaAttribute != null) ?
- javaAttribute.getJpaContainerDefinition() :
+ return (this.javaPersistentAttribute != null) ?
+ this.javaPersistentAttribute.getJpaContainerDefinition() :
JavaPersistentAttribute.JpaContainerDefinition.Null.instance();
}

Back to the top