git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9916 beta
[jalview.git]
/
forester
/
java
/
src
/
org
/
forester
/
go
/
BasicGoXRef.java
diff --git
a/forester/java/src/org/forester/go/BasicGoXRef.java
b/forester/java/src/org/forester/go/BasicGoXRef.java
index
c523102
..
9d48797
100644
(file)
--- 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 {
_type = Type.SABIO_RK;
}
else {
- throw new IllegalArgumentException( "unknown GO xref type: " + type );
+ _type = Type.OTHER;
}
_xref = sa[ 1 ].trim();
}
}
_xref = sa[ 1 ].trim();
}
@@
-117,8
+117,8
@@
public class BasicGoXRef implements GoXRef {
/**
* Based on value and type.
/**
* Based on value and type.
- *
- *
+ *
+ *
*/
@Override
public boolean equals( final Object o ) {
*/
@Override
public boolean equals( final Object o ) {
@@
-192,6
+192,9
@@
public class BasicGoXRef implements GoXRef {
case WIKIPEDIA:
sb.append( WIKIPEDIA_STR );
break;
case WIKIPEDIA:
sb.append( WIKIPEDIA_STR );
break;
+ case OTHER:
+ sb.append( "other" );
+ break;
default:
new AssertionError( "unknown type: " + getType() );
}
default:
new AssertionError( "unknown type: " + getType() );
}