@@ -345,7 +345,7 @@ private void initialiseDatabase() throws SQLException {
345345 * Returns false.
346346 */
347347 @ Override
348- public boolean isWrapperFor (Class <?> arg0 ) throws SQLException {
348+ public boolean isWrapperFor (Class <?> arg0 ) {
349349 return false ;
350350 }
351351
@@ -392,7 +392,6 @@ public SQLException getDataSourceDownReason() {
392392 * Called when the pool hits the warning level.
393393 */
394394 protected void notifyWarning (String msg ) {
395-
396395 if (inWarningMode .compareAndSet (false , true )) {
397396 // send an Error to the event log...
398397 logger .warn (msg );
@@ -505,7 +504,7 @@ private void initConnection(Connection conn) throws SQLException {
505504 conn .setTransactionIsolation (transactionIsolation );
506505 }
507506 if (readOnly ) {
508- conn .setReadOnly (readOnly );
507+ conn .setReadOnly (true );
509508 }
510509 if (initSql != null ) {
511510 for (String query : initSql ) {
@@ -791,16 +790,13 @@ PooledConnection createConnectionForQueue(int connId) throws SQLException {
791790
792791 /**
793792 * Close all the connections in the pool.
794- * <p>
795793 * <ul>
796- * <li>Checks that the database is up.
797- * <li>Resets the Alert level.
798- * <li>Closes busy connections that have not been used for some time (aka
799- * leaks).
800- * <li>This closes all the currently available connections.
801- * <li>Busy connections are closed when they are returned to the pool.
794+ * <li>Checks that the database is up.</li>
795+ * <li>Resets the Alert level.</li>
796+ * <li>Closes busy connections that have not been used for some time (aka leaks).</li>
797+ * <li>This closes all the currently available connections.</li>
798+ * <li>Busy connections are closed when they are returned to the pool.</li>
802799 * </ul>
803- * </p>
804800 */
805801 public void reset () {
806802 queue .reset (leakTimeMinutes );
@@ -1042,7 +1038,7 @@ public static class Status implements PoolStatus {
10421038 private final int waitCount ;
10431039 private final int hitCount ;
10441040
1045- protected Status (int minSize , int maxSize , int free , int busy , int waiting , int highWaterMark , int waitCount , int hitCount ) {
1041+ Status (int minSize , int maxSize , int free , int busy , int waiting , int highWaterMark , int waitCount , int hitCount ) {
10461042 this .minSize = minSize ;
10471043 this .maxSize = maxSize ;
10481044 this .free = free ;
0 commit comments