CE-23 further improved the support for wire maps to be accessed via engine.

This commit is contained in:
Rob Austin
2015-04-23 12:24:07 +01:00
parent f4003520ab
commit d16929ae88
3 changed files with 284 additions and 32 deletions
@@ -198,7 +198,7 @@ public class MapWireHandler<K, V> implements WireHandler, Consumer<WireHandlers>
final byte[] key = wire.read(params[0]).bytes();
final byte[] value = wire.read(params[1]).bytes();
writeVoid(b -> ((Map<byte[], byte[]>) b.delegate).putIfAbsent(key, value));
writeValueFromBytes(b -> ((Map<byte[], byte[]>) b.delegate).putIfAbsent(key, value));
});