X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FDBRefUtils.java;h=d3788ea1ead1a96fa555c0956214a805c591f7ba;hb=d5b157fc64cc6e5f633a2f7ae991a29b7c557b94;hp=2f844dafb121c96fa0fff5ef17db88ef1dea5de7;hpb=91416b3038a6f3fc655791512770da07cb6cb251;p=jalview.git diff --git a/src/jalview/util/DBRefUtils.java b/src/jalview/util/DBRefUtils.java index 2f844da..d3788ea 100755 --- a/src/jalview/util/DBRefUtils.java +++ b/src/jalview/util/DBRefUtils.java @@ -4,6 +4,7 @@ import java.util.*; import jalview.datamodel.*; + public class DBRefUtils { /** @@ -15,23 +16,29 @@ public class DBRefUtils * @param sources String[] array of source DBRef IDs to retrieve * @return Vector */ - public static Vector selectRefs(java.util.Vector dbrefs, String[] sources) { + public static DBRefEntry [] selectRefs(DBRefEntry [] dbrefs, String[] sources) { if (dbrefs==null) return null; if (sources==null) return dbrefs; Hashtable srcs = new Hashtable(); Vector res=new Vector(); + for (int i=0; i0) - return res; + { + DBRefEntry [] reply = new DBRefEntry[res.size()]; + for(int i=0; i