Skip to content

CONECT/LINK line-length bug fix for the PDB Parser (already in BioJava Master branch).#707

Merged
josemduarte merged 2 commits intobiojava:bugfixes-4.2from
erikedlund:linelength424
Oct 19, 2017
Merged

CONECT/LINK line-length bug fix for the PDB Parser (already in BioJava Master branch).#707
josemduarte merged 2 commits intobiojava:bugfixes-4.2from
erikedlund:linelength424

Conversation

@larsonmattr
Copy link
Copy Markdown
Contributor

These are line-length bug fixes which are in the Master BioJava branch but not in the bugfixes-4.2 (4.2.8 branch).

…usually indicative of misformated lines.

Added line length checks within the LINK and CONECT parsing blocks to allow for short lines to be parsed.
Copy link
Copy Markdown
Contributor

@josemduarte josemduarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! Only 2 minor comments

else if (recordName.equals("TURN")) pdb_TURN_Handler( line ) ;
}
} catch (StringIndexOutOfBoundsException ex) {
logger.info("Unable to parse [" + line + "]");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be warn level


/**
* This class will test parsing short CONECT lines.
* <p>(c) 2016 DNASTAR, Inc.</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this for biojava code

@josemduarte
Copy link
Copy Markdown
Contributor

This solves #705, doesn't it?

@josemduarte
Copy link
Copy Markdown
Contributor

@larsonmattr any chance to make the changes above before merging?

@larsonmattr
Copy link
Copy Markdown
Contributor Author

larsonmattr commented Oct 18, 2017 via email

@larsonmattr
Copy link
Copy Markdown
Contributor Author

larsonmattr commented Oct 18, 2017 via email

@josemduarte josemduarte merged commit 58b00ff into biojava:bugfixes-4.2 Oct 19, 2017
@josemduarte
Copy link
Copy Markdown
Contributor

Thanks @larsonmattr. I'll release a new bugfix version today that will contain this and other small maintenance fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants