Skip to content

Commit f499724

Browse files
committed
GenIgnore with permitted types on the new pool creation methods
1 parent ab9b53b commit f499724

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

vertx-db2-client/src/main/java/io/vertx/db2client/DB2Pool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static DB2Pool pool(Vertx vertx, List<DB2ConnectOptions> databases, PoolOptions
119119
* @param poolOptions the options for creating the pool
120120
* @return the connection pool
121121
*/
122-
@GenIgnore
122+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
123123
static DB2Pool pool(Supplier<Future<DB2ConnectOptions>> databases, PoolOptions poolOptions) {
124124
return pool(null, databases, poolOptions);
125125
}
@@ -128,7 +128,7 @@ static DB2Pool pool(Supplier<Future<DB2ConnectOptions>> databases, PoolOptions p
128128
/**
129129
* Like {@link #pool(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
130130
*/
131-
@GenIgnore
131+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
132132
static DB2Pool pool(Vertx vertx, Supplier<Future<DB2ConnectOptions>> databases, PoolOptions poolOptions) {
133133
return (DB2Pool) DB2Driver.INSTANCE.createPool(vertx, databases, poolOptions);
134134
}

vertx-mssql-client/src/main/java/io/vertx/mssqlclient/MSSQLPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ static MSSQLPool pool(Vertx vertx, List<MSSQLConnectOptions> databases, PoolOpti
107107
* @param options the options for creating the pool
108108
* @return the connection pool
109109
*/
110-
@GenIgnore
110+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
111111
static MSSQLPool pool(Supplier<Future<MSSQLConnectOptions>> databases, PoolOptions options) {
112112
return pool(null, databases, options);
113113
}
114114

115115
/**
116116
* Like {@link #pool(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
117117
*/
118-
@GenIgnore
118+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
119119
static MSSQLPool pool(Vertx vertx, Supplier<Future<MSSQLConnectOptions>> databases, PoolOptions options) {
120120
return (MSSQLPool) MSSQLDriver.INSTANCE.createPool(vertx, databases, options);
121121
}

vertx-mysql-client/src/main/java/io/vertx/mysqlclient/MySQLPool.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ static MySQLPool pool(Vertx vertx, List<MySQLConnectOptions> databases, PoolOpti
111111
* @param options the options for creating the pool
112112
* @return the connection pool
113113
*/
114-
@GenIgnore
114+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
115115
static MySQLPool pool(Supplier<Future<MySQLConnectOptions>> databases, PoolOptions options) {
116116
return pool(null, databases, options);
117117
}
118118

119119
/**
120120
* Like {@link #pool(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
121121
*/
122-
@GenIgnore
122+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
123123
static MySQLPool pool(Vertx vertx, Supplier<Future<MySQLConnectOptions>> databases, PoolOptions options) {
124124
return (MySQLPool) MySQLDriver.INSTANCE.createPool(vertx, databases, options);
125125
}
@@ -190,7 +190,7 @@ static SqlClient client(List<MySQLConnectOptions> databases, PoolOptions options
190190
/**
191191
* Like {@link #client(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
192192
*/
193-
@GenIgnore
193+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
194194
static SqlClient client(Vertx vertx, Supplier<Future<MySQLConnectOptions>> mySQLConnectOptions, PoolOptions options) {
195195
return MySQLDriver.INSTANCE.createPool(vertx, mySQLConnectOptions, new MySQLPoolOptions(options).setPipelined(true));
196196
}
@@ -203,7 +203,7 @@ static SqlClient client(Vertx vertx, Supplier<Future<MySQLConnectOptions>> mySQL
203203
* @param options the options for creating the pool
204204
* @return the pooled client
205205
*/
206-
@GenIgnore
206+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
207207
static SqlClient client(Supplier<Future<MySQLConnectOptions>> databases, PoolOptions options) {
208208
return client(null, databases, options);
209209
}

vertx-oracle-client/src/main/java/io/vertx/oracleclient/OraclePool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static OraclePool pool(Vertx vertx, String connectionUri, PoolOptions poolOption
6565
* @param poolOptions the options for creating the pool
6666
* @return the connection pool
6767
*/
68-
@GenIgnore
68+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
6969
static OraclePool pool(Supplier<Future<OracleConnectOptions>> databases, PoolOptions poolOptions) {
7070
return pool(null, databases, poolOptions);
7171
}
@@ -74,7 +74,7 @@ static OraclePool pool(Supplier<Future<OracleConnectOptions>> databases, PoolOpt
7474
/**
7575
* Like {@link #pool(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
7676
*/
77-
@GenIgnore
77+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
7878
static OraclePool pool(Vertx vertx, Supplier<Future<OracleConnectOptions>> databases, PoolOptions poolOptions) {
7979
return (OraclePool) OracleDriver.INSTANCE.createPool(vertx, databases, poolOptions);
8080
}

vertx-pg-client/src/main/java/io/vertx/pgclient/PgPool.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ static PgPool pool(Vertx vertx, List<PgConnectOptions> databases, PoolOptions po
138138
* @param poolOptions the options for creating the pool
139139
* @return the connection pool
140140
*/
141-
@GenIgnore
141+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
142142
static PgPool pool(Supplier<Future<PgConnectOptions>> databases, PoolOptions poolOptions) {
143143
return pool(null, databases, poolOptions);
144144
}
145145

146146
/**
147147
* Like {@link #pool(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
148148
*/
149-
@GenIgnore
149+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
150150
static PgPool pool(Vertx vertx, Supplier<Future<PgConnectOptions>> databases, PoolOptions poolOptions) {
151151
return (PgPool) PgDriver.INSTANCE.createPool(vertx, databases, poolOptions);
152152
}
@@ -239,7 +239,7 @@ static SqlClient client(List<PgConnectOptions> databases, PoolOptions options) {
239239
/**
240240
* Like {@link #client(Supplier, PoolOptions)} with a specific {@link Vertx} instance.
241241
*/
242-
@GenIgnore
242+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
243243
static SqlClient client(Vertx vertx, Supplier<Future<PgConnectOptions>> databases, PoolOptions options) {
244244
return PgDriver.INSTANCE.createPool(vertx, databases, new PgPoolOptions(options).setPipelined(true));
245245
}
@@ -252,7 +252,7 @@ static SqlClient client(Vertx vertx, Supplier<Future<PgConnectOptions>> database
252252
* @param options the options for creating the pool
253253
* @return the pooled client
254254
*/
255-
@GenIgnore
255+
@GenIgnore(GenIgnore.PERMITTED_TYPE)
256256
static SqlClient client(Supplier<Future<PgConnectOptions>> databases, PoolOptions options) {
257257
return client(null, databases, options);
258258
}

0 commit comments

Comments
 (0)