nlu90 commented on a change in pull request #13748:
URL: https://github.com/apache/pulsar/pull/13748#discussion_r784396954
##########
File path:
pulsar-websocket/src/main/java/org/apache/pulsar/websocket/stats/JvmMetrics.java
##########
@@ -18,27 +18,21 @@
*/
package org.apache.pulsar.websocket.stats;
+import static io.netty.util.internal.PlatformDependent.maxDirectMemory;
Review comment:
This import is illegal based on the rules:
```
➜ sn-pulsar git:(neng/pulsar-module-checkstyle) mvn checkstyle:check
-Dpulsar.basedir=. -pl pulsar-websocket
...
[ERROR]
src/main/java/org/apache/pulsar/websocket/stats/JvmMetrics.java:[21,1]
(imports) IllegalImport: Illegal import -
io.netty.util.internal.PlatformDependent.maxDirectMemory.
```
But I don't have a good idea on how to fix this one. Need some help on it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]