Fix testing results for Authn
[aaf/authz.git] / cadi / aaf / src / main / java / org / onap / aaf / cadi / aaf / v2_0 / AAFLocator.java
index ee64954..00a4056 100644 (file)
@@ -88,7 +88,7 @@ public class AAFLocator extends AbsAAFLocator<BasicTrans>  {
                                                        locatorURI.getUserInfo(),
                                                        locatorURI.getHost(),
                                                        locatorURI.getPort(),
-                                                       "/locate/"+name + '/' + version,
+                                                       "/locate/"+name + ':' + version,
                                                        null,
                                                        null
                                                        );
@@ -109,7 +109,7 @@ public class AAFLocator extends AbsAAFLocator<BasicTrans>  {
                        client.send();
                        Future<Endpoints> fr = client.futureRead(epsDF, TYPE.JSON);
                        if(fr.get(client.timeout())) {
-                               List<EP> epl = new LinkedList<EP>();
+                               List<EP> epl = new LinkedList<>();
                                for(Endpoint endpoint : fr.value.getEndpoint()) {
                                        epl.add(new EP(endpoint,latitude,longitude));
                                }