|
56 | 56 | import java.util.concurrent.atomic.AtomicLong; |
57 | 57 | import java.util.stream.Collectors; |
58 | 58 | import java.util.stream.IntStream; |
59 | | -import java.util.stream.LongStream; |
60 | 59 | import java.util.stream.Stream; |
61 | 60 |
|
62 | 61 | import static java.lang.String.format; |
@@ -2158,6 +2157,7 @@ public void testUsingWhenCancel() { |
2158 | 2157 | "CREATE TABLE testUsingWhenCancel (value NUMBER)")); |
2159 | 2158 |
|
2160 | 2159 | // Use more threads than what the FJP has available |
| 2160 | + @SuppressWarnings({"unchecked","rawtypes"}) |
2161 | 2161 | Publisher<Boolean>[] publishers = |
2162 | 2162 | new Publisher[ForkJoinPool.getCommonPoolParallelism() * 4]; |
2163 | 2163 |
|
@@ -2301,6 +2301,7 @@ ConnectionFactoryOptions.PASSWORD, password()) |
2301 | 2301 | private void verifyConcurrentExecute(Connection connection) { |
2302 | 2302 |
|
2303 | 2303 | // Create many statements and execute them in parallel. |
| 2304 | + @SuppressWarnings({"unchecked","rawtypes"}) |
2304 | 2305 | Publisher<Integer>[] publishers = new Publisher[8]; |
2305 | 2306 |
|
2306 | 2307 | for (int i = 0; i < publishers.length; i++) { |
@@ -2332,6 +2333,7 @@ private void verifyConcurrentFetch(Connection connection) { |
2332 | 2333 | "CREATE TABLE testConcurrentFetch (value NUMBER)")); |
2333 | 2334 |
|
2334 | 2335 | // Create many statements and execute them in parallel. |
| 2336 | + @SuppressWarnings({"unchecked","rawtypes"}) |
2335 | 2337 | Publisher<Long>[] publishers = new Publisher[8]; |
2336 | 2338 |
|
2337 | 2339 | for (int i = 0; i < publishers.length; i++) { |
@@ -2365,6 +2367,7 @@ private void verifyConcurrentFetch(Connection connection) { |
2365 | 2367 | Flux.merge(publishers)); |
2366 | 2368 |
|
2367 | 2369 | // Create publishers that fetch rows in parallel |
| 2370 | + @SuppressWarnings({"unchecked","rawtypes"}) |
2368 | 2371 | Publisher<List<Integer>>[] fetchPublishers = |
2369 | 2372 | new Publisher[publishers.length]; |
2370 | 2373 |
|
|
0 commit comments