Skip to content

Commit ed15de1

Browse files
committed
Fix ScopFactory bug
The current version was being returned sometimes, even when an older version was requested.
1 parent 6f6f31a commit ed15de1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

biojava3-structure/src/main/java/org/biojava/bio/structure/scop/ScopFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public static ScopDatabase getSCOP(String version, boolean forceLocalData){
118118
// Use a remote installation
119119
if( scop == null ) {
120120
scop = new RemoteScopInstallation();
121+
scop.setScopVersion(version);
121122
versionedScopDBs.put(version,scop);
122123
}
123124
return scop;

0 commit comments

Comments
 (0)