Elffuss BraidHub

kikocis/java-driver public

Use AttributeKey.valueOf instead of AttributeKey.newInstance.

AttributeKey.newInstance has been recently introduced and may cause NoSuchMethodErrors with older versions of Netty,
while AttributeKey.valueOf exists since at least Netty 4.0.23.Final - the version currently in use in Cassandra.
Changeset21cc5d824743e1634dd2ad08c690c46d214b96ad87c9f4a4d05f3bc6acdfbc20
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-12-30 10:34 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2016-01-04 18:04 +01:00
Parents612056fe2567

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/Message.java +1 −1
@@ -36,7 +36,7 @@
3636
3737 protected static final Logger logger = LoggerFactory.getLogger(Message.class);
3838
39- static AttributeKey<CodecRegistry> CODEC_REGISTRY_ATTRIBUTE_KEY = AttributeKey.newInstance("com.datastax.driver.core.CodecRegistry");
39+ static AttributeKey<CodecRegistry> CODEC_REGISTRY_ATTRIBUTE_KEY = AttributeKey.valueOf("com.datastax.driver.core.CodecRegistry");
4040
4141 interface Coder<R extends Request> {
4242 void encode(R request, ByteBuf dest, ProtocolVersion version);