Simplify capability set serialization
This commit is contained in:
parent
a8da0f64ac
commit
74f8889bfa
|
@ -34,8 +34,7 @@ public class DeviceCapabilityAdapter {
|
||||||
final SerializerProvider serializerProvider) throws IOException {
|
final SerializerProvider serializerProvider) throws IOException {
|
||||||
|
|
||||||
jsonGenerator.writeObject(capabilities.stream()
|
jsonGenerator.writeObject(capabilities.stream()
|
||||||
.map(DeviceCapability::getName)
|
.collect(Collectors.toMap(DeviceCapability::getName, ignored -> true)));
|
||||||
.collect(Collectors.toMap(capability -> capability, ignored -> true)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue