Fix for building with JDK1.4.  It doesn't like if statements written "condition ? a : b" unless a extends b or b extends a.
Fix for building with JDK1.4.  It doesn't like if statements written
"condition ? a : b" unless a extends b or b extends a.

tivv/davepgjdbc,tivv/davepgjdbc