Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试消除我必须使用的库产生的警告。
我已经将库的 netty 版本提升到 3.5.4.Final。但是,ChannelPipelineCoverage 注释似乎已被弃用。
我的问题是:是否有任何简单的替代品,或者这是否需要大量编码?如果是这样,我会喜欢一些关于如何开始的参考!
没有@ChannelHandler.Shareable() 的类是否与具有@ChannelPipelineCoverage("one") 的类相同?
不知道你现在是否已经想通了,但是名称已更改为“可共享”,如所述:NETTY-283:
Logged Change Request here : and some mailing archive here : 建议使用:import org.jboss.netty.channel.ChannelHandler.Sharable,在你的 Java 类中设置引用。