Skip to content

Commit

Permalink
Added the backwards compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Oct 8, 2023
1 parent d78f7e6 commit 3d602da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions org.bridgedb/src/main/java/org/bridgedb/DataSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,10 @@ public static DataSource getExistingByFullName(String fullName)
{
if (byFullName.containsKey(fullName)){
return byFullName.get(fullName);
// the following lines are added on 2023-10 for backwards compatibility
} else if ("Uniprot-TrEMBL".equals(fullName) ||
"Uniprot-SwissProt".equals(fullName)) {
return byFullName.get("UniProtKB");
}
throw new IllegalArgumentException ("No DataSource known for " + fullName);
}
Expand Down

0 comments on commit 3d602da

Please sign in to comment.