@@ -236,7 +236,7 @@ public Connection getConnection() throws SQLException {
236236 public Connection getConnection (final String userName , final String userPassword ) throws SQLException {
237237 if (instanceKey == null ) {
238238 throw new SQLException ("Must set the ConnectionPoolDataSource "
239- + "through setDataSourceName or setConnectionPoolDataSource" + " before calling getConnection." );
239+ + "through setDataSourceName or setConnectionPoolDataSource before calling getConnection." );
240240 }
241241 getConnectionCalled = true ;
242242 PooledConnectionAndInfo info = null ;
@@ -258,7 +258,7 @@ public Connection getConnection(final String userName, final String userPassword
258258 // Password has not changed, so refuse client, but return connection to the pool
259259 closeDueToException (info );
260260 throw new SQLException (
261- "Given password did not match password used" + " to create the PooledConnection." , ex );
261+ "Given password did not match password used to create the PooledConnection." , ex );
262262 } catch (final javax .naming .NamingException ne ) {
263263 throw new SQLException ("NamingException encountered connecting to database" , ne );
264264 }
@@ -777,7 +777,7 @@ public void setDataSourceName(final String dataSourceName) {
777777 + "set using setConnectionPoolDataSource." );
778778 }
779779 if (this .dataSourceName != null ) {
780- throw new IllegalStateException ("The DataSourceName has already been set. " + " It cannot be altered." );
780+ throw new IllegalStateException ("The DataSourceName has already been set. It cannot be altered." );
781781 }
782782 this .dataSourceName = dataSourceName ;
783783 instanceKey = InstanceKeyDataSourceFactory .registerNewInstance (this );
@@ -1266,8 +1266,8 @@ protected ConnectionPoolDataSource testCPDS(final String userName, final String
12661266 }
12671267 final Object ds = ctx .lookup (dataSourceName );
12681268 if (!(ds instanceof ConnectionPoolDataSource )) {
1269- throw new SQLException ("Illegal configuration: " + " DataSource " + dataSourceName + " ("
1270- + ds .getClass ().getName () + ")" + " doesn't implement javax.sql.ConnectionPoolDataSource" );
1269+ throw new SQLException ("Illegal configuration: DataSource " + dataSourceName + " ("
1270+ + ds .getClass ().getName () + ") doesn't implement javax.sql.ConnectionPoolDataSource" );
12711271 }
12721272 cpds = (ConnectionPoolDataSource ) ds ;
12731273 }
0 commit comments