fix type mismatch
Change-Id: I5f0994ebbb46bb7bfe5926a27923f0971b58729a
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -195,7 +195,7 @@ public class DistributedLinkResourceStore implements LinkResourceStore { | ... | @@ -195,7 +195,7 @@ public class DistributedLinkResourceStore implements LinkResourceStore { |
195 | @Override | 195 | @Override |
196 | public void releaseResources(LinkResourceAllocations allocations) { | 196 | public void releaseResources(LinkResourceAllocations allocations) { |
197 | checkNotNull(allocations); | 197 | checkNotNull(allocations); |
198 | - linkResourceAllocationsMap.remove(allocations); | 198 | + linkResourceAllocationsMap.remove(allocations.intendId()); |
199 | for (Link link : allocations.links()) { | 199 | for (Link link : allocations.links()) { |
200 | addFreeResources(link, allocations); | 200 | addFreeResources(link, allocations); |
201 | Set<LinkResourceAllocations> linkAllocs = allocatedResources.get(link); | 201 | Set<LinkResourceAllocations> linkAllocs = allocatedResources.get(link); | ... | ... |
... | @@ -195,7 +195,7 @@ public class SimpleLinkResourceStore implements LinkResourceStore { | ... | @@ -195,7 +195,7 @@ public class SimpleLinkResourceStore implements LinkResourceStore { |
195 | @Override | 195 | @Override |
196 | public void releaseResources(LinkResourceAllocations allocations) { | 196 | public void releaseResources(LinkResourceAllocations allocations) { |
197 | checkNotNull(allocations); | 197 | checkNotNull(allocations); |
198 | - linkResourceAllocationsMap.remove(allocations); | 198 | + linkResourceAllocationsMap.remove(allocations.intendId()); |
199 | for (Link link : allocations.links()) { | 199 | for (Link link : allocations.links()) { |
200 | addFreeResources(link, allocations); | 200 | addFreeResources(link, allocations); |
201 | Set<LinkResourceAllocations> linkAllocs = allocatedResources.get(link); | 201 | Set<LinkResourceAllocations> linkAllocs = allocatedResources.get(link); | ... | ... |
-
Please register or login to post a comment