File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed
neo4j-bolt-connection-netty
main/java/org/neo4j/bolt/connection/netty/impl/async/connection
test/java/org/neo4j/bolt/connection/netty/impl/async/connection Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ Apache Software License, Version 2.0
7
7
Neo4j Bolt Connection (Provider SPI)
8
8
Netty/Buffer
9
9
Netty/Codec
10
+ Netty/Codec/Base
11
+ Netty/Codec/Compression
12
+ Netty/Codec/Marshalling
13
+ Netty/Codec/Protobuf
10
14
Netty/Common
11
15
Netty/Handler
12
16
Netty/Resolver
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ Apache Software License, Version 2.0
22
22
Neo4j Bolt Connection (Provider SPI)
23
23
Netty/Buffer
24
24
Netty/Codec
25
+ Netty/Codec/Base
26
+ Netty/Codec/Compression
27
+ Netty/Codec/Marshalling
28
+ Netty/Codec/Protobuf
25
29
Netty/Common
26
30
Netty/Handler
27
31
Netty/Resolver
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ public static boolean isEventLoopThread(Thread thread) {
87
87
* Same as {@link NioEventLoopGroup} but uses a different {@link ThreadFactory} that produces threads of
88
88
* {@link EventLoopThread} class. Such threads can be recognized by {@link #assertNotInEventLoopThread()}.
89
89
*/
90
+ // use NioEventLoopGroup for now to be compatible with Netty 4.1
91
+ @ SuppressWarnings ("deprecation" )
90
92
private static class DriverEventLoopGroup extends NioEventLoopGroup {
91
93
DriverEventLoopGroup (int nThreads ) {
92
94
super (nThreads );
@@ -102,6 +104,8 @@ protected ThreadFactory newDefaultThreadFactory() {
102
104
* Same as {@link DefaultThreadFactory} created by {@link NioEventLoopGroup} by default, except produces threads of
103
105
* {@link DriverThread} class. Such threads can be recognized by {@link #assertNotInEventLoopThread()}.
104
106
*/
107
+ // use NioEventLoopGroup for now to be compatible with Netty 4.1
108
+ @ SuppressWarnings ("deprecation" )
105
109
private static class DriverThreadFactory extends DefaultThreadFactory {
106
110
DriverThreadFactory () {
107
111
super (THREAD_NAME_PREFIX , THREAD_IS_DAEMON , THREAD_PRIORITY );
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ void shouldReturnCorrectChannelClass() {
44
44
assertEquals (NioSocketChannel .class , EventLoopGroupFactory .channelClass ());
45
45
}
46
46
47
+ // use NioEventLoopGroup for now to be compatible with Netty 4.1
48
+ @ SuppressWarnings ("deprecation" )
47
49
@ Test
48
50
void shouldCreateEventLoopGroupWithSpecifiedThreadCount () {
49
51
var threadCount = 2 ;
@@ -85,6 +87,8 @@ void shouldCheckIfEventLoopThread() throws Exception {
85
87
* Test verifies that our event loop group uses same kind of thread as Netty does by default.
86
88
* It's needed because default Netty setup has good performance.
87
89
*/
90
+ // use NioEventLoopGroup for now to be compatible with Netty 4.1
91
+ @ SuppressWarnings ("deprecation" )
88
92
@ Test
89
93
void shouldUseSameThreadClassAsNioEventLoopGroupDoesByDefault () throws Exception {
90
94
var nioEventLoopGroup = new NioEventLoopGroup (1 );
Original file line number Diff line number Diff line change 46
46
<properties >
47
47
<bouncycastle-jdk18on .version>1.80</bouncycastle-jdk18on .version>
48
48
<build-resources .version>2024-12.1</build-resources .version>
49
- <junit .version>5.11.4 </junit .version>
49
+ <junit .version>5.12.2 </junit .version>
50
50
<maven .build.timestamp.format>'v'yyyyMMdd-HHmm</maven .build.timestamp.format>
51
51
<maven .compiler.release>17</maven .compiler.release>
52
52
<maven .compiler.xlint.extras />
53
53
<!-- Skip deployment by default for everything in this project. -->
54
54
<maven .deploy.skip>true</maven .deploy.skip>
55
- <mockito .version>5.15.2 </mockito .version>
55
+ <mockito .version>5.17.0 </mockito .version>
56
56
<!-- To be overwritten by child projects -->
57
57
<moduleName />
58
- <netty-bom .version>4.1.119 .Final</netty-bom .version>
58
+ <netty-bom .version>4.2.0 .Final</netty-bom .version>
59
59
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
60
60
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
61
61
<rootDir >${project.basedir}</rootDir >
62
62
<sortpom-maven-plugin .version>4.0.0</sortpom-maven-plugin .version>
63
- <surefire .and.failsafe.version>3.1.2 </surefire .and.failsafe.version>
63
+ <surefire .and.failsafe.version>3.5.3 </surefire .and.failsafe.version>
64
64
<surefire .jpms.args />
65
65
</properties >
66
66
You can’t perform that action at this time.
0 commit comments