Skip to content

Commit

Permalink
fixed incompatibility with Java8
Browse files Browse the repository at this point in the history
thsa committed Jan 13, 2025
1 parent 2182a90 commit a5eb70a
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -531,8 +531,16 @@ public PDBCoordEntryFile parse(BufferedReader br) throws IOException, ParseExcep
TreeSet<AtomRecord> protAtomRecords = new TreeSet<AtomRecord>();
modelParser.parse(liRaw, indexLine,protAtomRecords,hetAtomRecords);

pdbCoordEntryFile.setProtAtomRecords(protAtomRecords.stream().toList());
pdbCoordEntryFile.setHetAtomRecords(hetAtomRecords.stream().toList());
ArrayList<AtomRecord> protAtomList = new ArrayList<>();
for (AtomRecord ar : protAtomRecords)
protAtomList.add(ar);

ArrayList<AtomRecord> hetAtomList = new ArrayList<>();
for (AtomRecord ar : hetAtomRecords)
hetAtomList.add(ar);

pdbCoordEntryFile.setProtAtomRecords(protAtomList);
pdbCoordEntryFile.setHetAtomRecords(hetAtomList);
//List<ModelModel> liModelModel = modelParser.getLiModelModel();
//pdbCoordEntryFile.setLiModelModel(liModelModel);

0 comments on commit a5eb70a

Please sign in to comment.