commit | ec932bd9ba39d57e997ddb85c4eca085ec76ab63 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Mar 31 11:09:36 2016 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Mar 31 12:34:35 2016 -0700 |
tree | 87526241cd8cb5a07a6e33d0e18d3e737e2f3f70 | |
parent | 26be4f382283f96474a987396842ec57d63796b6 [diff] |
Fix missing return statement in MPLS label allocation Change-Id: I1ff26d253585d09b75ceecf819efa0d027057e50
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java index 50114ec..9425164 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/PathCompiler.java
@@ -264,7 +264,7 @@ List<ResourceAllocation> allocations = creator.resourceService().allocate(intent.id(), ImmutableList.copyOf(resources)); if (allocations.isEmpty()) { - Collections.emptyMap(); + return Collections.emptyMap(); } return labels;