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:
Marc Prud'hommeaux 2007-07-03 22:42:39 +00:00
parent 0c517d163e
commit 8b5a7f68a0
99 changed files with 934 additions and 931 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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();