From: Jim Procter Date: Wed, 2 Oct 2019 16:29:26 +0000 (+0100) Subject: JAL-3070 make AlignCalcUI service code work only with instances of ServiceWithParameters X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d95566a60c5dbc13f653c1e52bfa06954f1fbf4d;p=jalview.git JAL-3070 make AlignCalcUI service code work only with instances of ServiceWithParameters --- diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index 7e1bd81..d270c85 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -960,7 +960,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI if (ourServices != null) { - for (ServiceWithParameters svc : services) + for (ServiceWithParameters svc : ourServices) { // TODO getNameURI Should return a versioned URI for the service, but // doesn't as of 2.11 @@ -1016,8 +1016,8 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI } } - Jws2Instance response = null; - for (Jws2Instance svc : services) + ServiceWithParameters response = null; + for (ServiceWithParameters svc : getServices()) { if (svc.getName().equals(serviceName)) {