mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
fixed test error in deserializing device identifiers by reworking logic of placeholder device id
This commit is contained in:
1 parent
9c3524bddc
commit
329c4556b4
13 files changed
+54
-21
No files matched your search
+5
-1
@@ -40,7 +40,11 @@ public class DeviceIdentifierJsonDeserializer implements JsonDeserializer<Device
|
||||
try {
|
||||
return deviceServiceFinder.findService(deviceType).deserialize(deviceIdObject, deviceType, deviceStringRep);
|
||||
} catch (TransformationException e) {
|
||||
throw new JsonDeserializationException(e);
|
||||
try {
|
||||
return new PlaceHolderDeviceIdentifierJsonHandler().deserialize(deviceIdObject, deviceType, deviceStringRep);
|
||||
} catch (TransformationException e2) {
|
||||
throw new JsonDeserializationException(e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user