Skip to content

Commit d3fcbc1

Browse files
committed
Remove the warnings in MMTF reader
1 parent ae19c8c commit d3fcbc1

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmtf/MmtfStructureReader.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -304,29 +304,30 @@ public void setAtomInfo(String atomName,
304304
* face#setGroupBonds(int, int, int)
305305
*/
306306
@Override
307-
public void setGroupBond(int indOne,
308-
int indTwo, int bondOrder) {
309-
// Get the atom
307+
public void setGroupBond(int indOne, int indTwo, int bondOrder) {
308+
309+
// Get the atoms
310310
Atom atomOne = atomsInGroup.get(indOne);
311311
Atom atomTwo = atomsInGroup.get(indTwo);
312+
312313
// set the new bond
313-
@SuppressWarnings("unused")
314-
BondImpl bond = new BondImpl(atomOne, atomTwo, bondOrder);
314+
new BondImpl(atomOne, atomTwo, bondOrder);
315+
315316
}
316317

317318
/* (non-Javadoc)
318319
* @see org.rcsb.mmtf.decoder.StructureDecoder
319320
* Interface#setInterGroupBonds(int, int, int)
320321
*/
321322
@Override
322-
public void setInterGroupBond(int indOne,
323-
int indTwo, int bondOrder) {
324-
// Get the atom
323+
public void setInterGroupBond(int indOne, int indTwo, int bondOrder) {
324+
325+
// Get the atoms
325326
Atom atomOne = allAtoms[indOne];
326327
Atom atomTwo = allAtoms[indTwo];
327-
// set the new bond
328-
@SuppressWarnings("unused")
329-
BondImpl bond = new BondImpl(atomOne, atomTwo, bondOrder);
328+
329+
// set the new bond (this
330+
new BondImpl(atomOne, atomTwo, bondOrder);
330331
}
331332

332333

0 commit comments

Comments
 (0)