X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoXRef.java;h=9d487975d2a8eaf02532ae8bc1fe7c8339b22240;hb=f507bf348ffed906d04bc76a614d6778d4cb5d64;hp=c52310214fed486cd0f63a70b1b25764bb8e1677;hpb=656be28debec520e0e35a8b311114398a40ea366;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoXRef.java b/forester/java/src/org/forester/go/BasicGoXRef.java index c523102..9d48797 100644 --- a/forester/java/src/org/forester/go/BasicGoXRef.java +++ b/forester/java/src/org/forester/go/BasicGoXRef.java @@ -100,7 +100,7 @@ public class BasicGoXRef implements GoXRef { _type = Type.SABIO_RK; } else { - throw new IllegalArgumentException( "unknown GO xref type: " + type ); + _type = Type.OTHER; } _xref = sa[ 1 ].trim(); } @@ -117,8 +117,8 @@ public class BasicGoXRef implements GoXRef { /** * Based on value and type. - * - * + * + * */ @Override public boolean equals( final Object o ) { @@ -192,6 +192,9 @@ public class BasicGoXRef implements GoXRef { case WIKIPEDIA: sb.append( WIKIPEDIA_STR ); break; + case OTHER: + sb.append( "other" ); + break; default: new AssertionError( "unknown type: " + getType() ); }