OPENJPA-1143: fix compiler error on IBM SDK5

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fay Wang 2009-06-26 15:44:34 +00:00
parent 291f314242
commit 42f8667128
1 changed files with 2 additions and 3 deletions

View File

@ -227,7 +227,7 @@ public class SubqueryImpl<T> extends ExpressionImpl<T> implements Subquery<T> {
(Members.SingularAttributeImpl<?,?>)((Joins.SingularJoin<?,?>)join).getMember();
JoinType jt = join.getJoinType();
FromImpl<?,?> root = null;
if (parent instanceof RootImpl<?>) {
if (parent instanceof RootImpl) {
members.add(member);
jts.add(jt);
return (FromImpl<?,?>)parent;
@ -305,8 +305,7 @@ public class SubqueryImpl<T> extends ExpressionImpl<T> implements Subquery<T> {
}
RootImpl<?> root = (RootImpl<?>)getRoot();
RootImpl<?> corrRoot = (RootImpl<?>)root.getCorrelatedPath();
if (corrRoot != null && root.getJoins() != null) {
if (root.getCorrelatedPath() != null && root.getJoins() != null) {
FromImpl<?,?> join = (FromImpl<?,?>) root.getJoins().iterator().next();
return getInnermostCandidate(join);
}