git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9622063
)
JAL-4411 handle Boolean from String when Jalview projects imported
author
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 27 Jun 2024 16:26:23 +0000
(17:26 +0100)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 27 Jun 2024 16:26:23 +0000
(17:26 +0100)
src/jalview/datamodel/PDBEntry.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/PDBEntry.java
b/src/jalview/datamodel/PDBEntry.java
index
c3906f9
..
fb9e96a
100755
(executable)
--- a/
src/jalview/datamodel/PDBEntry.java
+++ b/
src/jalview/datamodel/PDBEntry.java
@@
-515,7
+515,8
@@
public class PDBEntry
{
if (_hasProperty(AUTHORITATIVE_ID))
{
- return ((Boolean) getProperty(AUTHORITATIVE_ID));
+ Object authId = getProperty(AUTHORITATIVE_ID);
+ return (authId instanceof Boolean) ? (Boolean) authId : Boolean.valueOf(authId.toString());
}
return false;
}