}
/**
- * return an ordered list of database sources excluding alignment only databases
+ * return an ordered list of database sources excluding alignment only
+ * databases
*/
public String[] getNonAlignmentSources()
{
String[] srcs = this.getSupportedDb();
List<String> src = new ArrayList<>();
-
- for (int i = 0; i < srcs.length; i++)
+ outer: for (int i = 0; i < srcs.length; i++)
{
- boolean accept = true;
for (DbSourceProxy dbs : getSourceProxy(srcs[i]))
{
// Skip the alignment databases for the moment - they're not useful for
// verifying a single sequence against its reference source
if (dbs.isAlignmentSource())
{
- accept = false;
- break;
+ continue outer;
}
}
- if (accept)
- {
- src.add(srcs[i]);
- }
+ src.add(srcs[i]);
}
Collections.sort(src, String.CASE_INSENSITIVE_ORDER);
return src.toArray(new String[src.size()]);