Skip to content

Commit 0e842d2

Browse files
Supressing warnings
1 parent 5b4f4d6 commit 0e842d2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/java/oracle/r2dbc/impl/OracleStatementImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ private JdbcBatch(
14571457
*/
14581458
@Override
14591459
protected Publisher<Void> bind() {
1460-
@SuppressWarnings("unchecked")
1460+
@SuppressWarnings({"unchecked","rawtypes"})
14611461
Publisher<Void>[] bindPublishers = new Publisher[batchSize];
14621462
for (int i = 0; i < batchSize; i++) {
14631463
bindPublishers[i] = Flux.concat(

src/test/java/oracle/r2dbc/impl/OracleStatementImplTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
import java.util.concurrent.atomic.AtomicLong;
5757
import java.util.stream.Collectors;
5858
import java.util.stream.IntStream;
59-
import java.util.stream.LongStream;
6059
import java.util.stream.Stream;
6160

6261
import static java.lang.String.format;
@@ -2158,6 +2157,7 @@ public void testUsingWhenCancel() {
21582157
"CREATE TABLE testUsingWhenCancel (value NUMBER)"));
21592158

21602159
// Use more threads than what the FJP has available
2160+
@SuppressWarnings({"unchecked","rawtypes"})
21612161
Publisher<Boolean>[] publishers =
21622162
new Publisher[ForkJoinPool.getCommonPoolParallelism() * 4];
21632163

@@ -2301,6 +2301,7 @@ ConnectionFactoryOptions.PASSWORD, password())
23012301
private void verifyConcurrentExecute(Connection connection) {
23022302

23032303
// Create many statements and execute them in parallel.
2304+
@SuppressWarnings({"unchecked","rawtypes"})
23042305
Publisher<Integer>[] publishers = new Publisher[8];
23052306

23062307
for (int i = 0; i < publishers.length; i++) {
@@ -2332,6 +2333,7 @@ private void verifyConcurrentFetch(Connection connection) {
23322333
"CREATE TABLE testConcurrentFetch (value NUMBER)"));
23332334

23342335
// Create many statements and execute them in parallel.
2336+
@SuppressWarnings({"unchecked","rawtypes"})
23352337
Publisher<Long>[] publishers = new Publisher[8];
23362338

23372339
for (int i = 0; i < publishers.length; i++) {
@@ -2365,6 +2367,7 @@ private void verifyConcurrentFetch(Connection connection) {
23652367
Flux.merge(publishers));
23662368

23672369
// Create publishers that fetch rows in parallel
2370+
@SuppressWarnings({"unchecked","rawtypes"})
23682371
Publisher<List<Integer>>[] fetchPublishers =
23692372
new Publisher[publishers.length];
23702373

0 commit comments

Comments
 (0)