Minor cleanup (removal of redundant code). Testing JDBC 4.1 via getNetworkTimeout() is not viable on some drivers, but checking setNetworkTimeout() is.
IS_JDBC41=connection.getNetworkTimeout()!=Integer.MIN_VALUE;// This will throw AbstractMethodError or SQLException in the case of a non-JDBC 41 compliant driver
}
catch(SQLFeatureNotSupportedExceptione){
IS_JDBC41=false;
}
catch(AbstractMethodErrore){
IS_JDBC41=false;
}
catch(NoSuchMethodErrore){
IS_JDBC41=false;
}
}
returnIS_JDBC41;
}
/**
*Setthequerytimeout,ifitissupportedbythedriver.
*
@ -319,7 +290,9 @@ public final class PoolUtilities
IS_JDBC41=connection.getNetworkTimeout()!=Integer.MIN_VALUE;// This will throw AbstractMethodError or SQLException in the case of a non-JDBC 41 compliant driver