Simplify statement because the variable never gets null
Change-Id: I6f733f760c839b8626209f3ba4853e1bea912ff8
Showing
1 changed file
with
1 additions
and
2 deletions
| ... | @@ -16,7 +16,6 @@ | ... | @@ -16,7 +16,6 @@ |
| 16 | package org.onosproject.driver.ovsdb; | 16 | package org.onosproject.driver.ovsdb; |
| 17 | 17 | ||
| 18 | import java.util.Collection; | 18 | import java.util.Collection; |
| 19 | -import java.util.Collections; | ||
| 20 | import java.util.HashSet; | 19 | import java.util.HashSet; |
| 21 | import java.util.Set; | 20 | import java.util.Set; |
| 22 | 21 | ||
| ... | @@ -75,7 +74,7 @@ public class OvsdbBridgeConfig extends AbstractHandlerBehaviour | ... | @@ -75,7 +74,7 @@ public class OvsdbBridgeConfig extends AbstractHandlerBehaviour |
| 75 | ownDeviceId); | 74 | ownDeviceId); |
| 76 | bridges.add(description); | 75 | bridges.add(description); |
| 77 | }); | 76 | }); |
| 78 | - return bridges == null ? Collections.emptySet() : bridges; | 77 | + return bridges; |
| 79 | } | 78 | } |
| 80 | 79 | ||
| 81 | @Override | 80 | @Override | ... | ... |
-
Please register or login to post a comment