kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | e393edf53a17d137f16e8949d51c47fbcbf5986ced4add54ca7c89fa5d2ecbb4 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-10-12 22:10 -05:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-10-14 22:35 +02:00 |
| Parents | afde5547aef9 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/CodecRegistry.java +2 −2
| @@ -310,8 +310,8 @@ | ||
| 310 | 310 | // 19 primitive codecs + collections thereof = 19*3 + 19*19 = 418 codecs, |
| 311 | 311 | // so let's start with roughly 1/4 of that |
| 312 | 312 | .initialCapacity(100) |
| 313 | - .weigher(new TypeCodecWeigher()) | |
| 314 | - .maximumWeight(1000); | |
| 313 | + .maximumWeight(1000) | |
| 314 | + .weigher(new TypeCodecWeigher()); | |
| 315 | 315 | if (logger.isTraceEnabled()) |
| 316 | 316 | // do not bother adding a listener if it will be ineffective |
| 317 | 317 | builder = builder.removalListener(new TypeCodecRemovalListener()); |