Upgrade to new netty-build and com.puppycrawl.tools 8.18 (#8980)
Motivation: com.puppycrawl.tools checkstyle < 8.18 was reported to contain a possible security flaw. We should upgrade. Modifications: - Upgrade netty-build and checkstyle. - Fix checkstyle errors Result: Fixes https://github.com/netty/netty/issues/8968.
This commit is contained in:
parent
231eb145f1
commit
6297f183a3
@ -593,7 +593,7 @@ public class DefaultHttp2FrameWriter implements Http2FrameWriter, Http2FrameSize
|
|||||||
if (paddingBytes(padding) > 0) {
|
if (paddingBytes(padding) > 0) {
|
||||||
ctx.write(ZERO_BUFFER.slice(0, paddingBytes(padding)), promiseAggregator.newPromise());
|
ctx.write(ZERO_BUFFER.slice(0, paddingBytes(padding)), promiseAggregator.newPromise());
|
||||||
}
|
}
|
||||||
} while(headerBlock.isReadable());
|
} while (headerBlock.isReadable());
|
||||||
}
|
}
|
||||||
return promiseAggregator;
|
return promiseAggregator;
|
||||||
}
|
}
|
||||||
|
7
pom.xml
7
pom.xml
@ -256,7 +256,7 @@
|
|||||||
<netty.dev.tools.directory>${project.build.directory}/dev-tools</netty.dev.tools.directory>
|
<netty.dev.tools.directory>${project.build.directory}/dev-tools</netty.dev.tools.directory>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<netty.build.version>24</netty.build.version>
|
<netty.build.version>25</netty.build.version>
|
||||||
<jboss.marshalling.version>1.4.11.Final</jboss.marshalling.version>
|
<jboss.marshalling.version>1.4.11.Final</jboss.marshalling.version>
|
||||||
<jetty.alpnAgent.version>2.0.8</jetty.alpnAgent.version>
|
<jetty.alpnAgent.version>2.0.8</jetty.alpnAgent.version>
|
||||||
<jetty.alpnAgent.path>"${settings.localRepository}"/org/mortbay/jetty/alpn/jetty-alpn-agent/${jetty.alpnAgent.version}/jetty-alpn-agent-${jetty.alpnAgent.version}.jar</jetty.alpnAgent.path>
|
<jetty.alpnAgent.path>"${settings.localRepository}"/org/mortbay/jetty/alpn/jetty-alpn-agent/${jetty.alpnAgent.version}/jetty-alpn-agent-${jetty.alpnAgent.version}.jar</jetty.alpnAgent.path>
|
||||||
@ -816,6 +816,11 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.puppycrawl.tools</groupId>
|
||||||
|
<artifactId>checkstyle</artifactId>
|
||||||
|
<version>8.18</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>netty-build</artifactId>
|
<artifactId>netty-build</artifactId>
|
||||||
|
@ -141,7 +141,7 @@ public final class Native {
|
|||||||
throw newIOException("epoll_ctl", res);
|
throw newIOException("epoll_ctl", res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static native int epollCtlAdd0(int efd, final int fd, final int flags);
|
private static native int epollCtlAdd0(int efd, int fd, int flags);
|
||||||
|
|
||||||
public static void epollCtlMod(int efd, final int fd, final int flags) throws IOException {
|
public static void epollCtlMod(int efd, final int fd, final int flags) throws IOException {
|
||||||
int res = epollCtlMod0(efd, fd, flags);
|
int res = epollCtlMod0(efd, fd, flags);
|
||||||
@ -149,7 +149,7 @@ public final class Native {
|
|||||||
throw newIOException("epoll_ctl", res);
|
throw newIOException("epoll_ctl", res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static native int epollCtlMod0(int efd, final int fd, final int flags);
|
private static native int epollCtlMod0(int efd, int fd, int flags);
|
||||||
|
|
||||||
public static void epollCtlDel(int efd, final int fd) throws IOException {
|
public static void epollCtlDel(int efd, final int fd) throws IOException {
|
||||||
int res = epollCtlDel0(efd, fd);
|
int res = epollCtlDel0(efd, fd);
|
||||||
@ -157,7 +157,7 @@ public final class Native {
|
|||||||
throw newIOException("epoll_ctl", res);
|
throw newIOException("epoll_ctl", res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static native int epollCtlDel0(int efd, final int fd);
|
private static native int epollCtlDel0(int efd, int fd);
|
||||||
|
|
||||||
// File-descriptor operations
|
// File-descriptor operations
|
||||||
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws IOException {
|
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user