Committed by
Gerrit Code Review
Return empty list instead of null to improve null-safety
Change-Id: I27066a21e6acf2a0d7c7037015d19a870c6a4ae9
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -616,7 +616,7 @@ public class GossipDeviceStore | ... | @@ -616,7 +616,7 @@ public class GossipDeviceStore |
616 | 616 | ||
617 | if (isDeviceRemoved(deviceId, portDescriptions.timestamp())) { | 617 | if (isDeviceRemoved(deviceId, portDescriptions.timestamp())) { |
618 | log.debug("Ignoring outdated events: {}", portDescriptions); | 618 | log.debug("Ignoring outdated events: {}", portDescriptions); |
619 | - return null; | 619 | + return Collections.emptyList(); |
620 | } | 620 | } |
621 | 621 | ||
622 | DeviceDescriptions descs = descsMap.get(providerId); | 622 | DeviceDescriptions descs = descsMap.get(providerId); | ... | ... |
-
Please register or login to post a comment