mirror of https://github.com/apache/openjpa.git
OPENJPA-244 Fixed some formatting inconsistencies with the patch for OPENJPA-244
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553010 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0c517d163e
commit
8b5a7f68a0
|
@ -127,7 +127,8 @@ class ConstPath
|
|||
action = itr.next();
|
||||
if (action instanceof Class) {
|
||||
try {
|
||||
cstate.value = Filters.convert(cstate.value, (Class)action);
|
||||
cstate.value = Filters.convert(cstate.value,
|
||||
(Class) action);
|
||||
continue;
|
||||
} catch (ClassCastException cce) {
|
||||
failed = true;
|
||||
|
|
|
@ -156,7 +156,8 @@ public class DataSourceFactory {
|
|||
|
||||
// ask the DriverDataSource to provide any additional decorators
|
||||
if (ds instanceof DriverDataSource) {
|
||||
List decs = ((DriverDataSource)ds).createConnectionDecorators();
|
||||
List decs = ((DriverDataSource) ds).
|
||||
createConnectionDecorators();
|
||||
if (decs != null)
|
||||
decorators.addAll(decs);
|
||||
}
|
||||
|
|
|
@ -343,7 +343,8 @@ public class TestManyOneAsId
|
|||
+ "where e.longId = :cid and e.entityId.id = :id");
|
||||
q.setParameter("cid", cid);
|
||||
q.setParameter("id", id);
|
||||
ManyOneCompoundIdOwner pc = (ManyOneCompoundIdOwner)q.getSingleResult();
|
||||
ManyOneCompoundIdOwner pc = (ManyOneCompoundIdOwner)
|
||||
q.getSingleResult();
|
||||
assertNotNull(pc);
|
||||
assertEquals("cparent", pc.getName());
|
||||
em.close();
|
||||
|
|
Loading…
Reference in New Issue