- for (int i=0, j=dbrefs.size(); i<j; i++)
- if (dbrefs.get(i) instanceof jalview.datamodel.DBRefEntry) {
- jalview.datamodel.DBRefEntry entry = (jalview.datamodel.DBRefEntry) dbrefs.get(i);
- if (srcs.containsKey(entry.getSource()))
- res.add(entry);
+ for (int i = 0, j = dbrefs.length; i < j; i++)
+ {
+ if (srcs.containsKey(dbrefs[i].getSource()))
+ res.add(dbrefs[i]);