aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-08-09 17:58:45 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-09 17:58:45 +0000
commit705075b24edfbf68d798c4cc28f7581d1b31934f (patch)
tree05f3603ed534000c1bbbc0d76a65ef02e73e784b
parent375001472fa8c286ac61557c63f2703da923b1d1 (diff)
parentc4a0e4279c770957fe2d12296418883897df8087 (diff)
Merge "CCSDK-1559-return this expression instead of assigning it to a temporary variable"
-rw-r--r--resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java
index 57796768..83dab541 100644
--- a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java
+++ b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/ra/comp/EndPointAllocatorImpl.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
+ *
+ * Modifications Copyright (C) 2019 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -227,8 +229,8 @@ public class EndPointAllocatorImpl implements EndPointAllocator {
log.info("ResourceName:" + r.resourceKey.resourceName + " assetId:" + r.resourceKey.assetId);
- ResourceData rd = getResourceData(r);
- rdlist.add(rd);
+
+ rdlist.add(getResourceData(r));
}
return rdlist;