Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(new) VertxInputStream #61

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

trajano
Copy link
Owner

@trajano trajano commented Mar 9, 2018

No description provided.

*/
public void end() {

System.out.println("ended");
Copy link
Owner Author

Choose a reason for hiding this comment

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

MAJOR Replace this use of System.out or System.err by a logger. rule

readStream.pause();
} else {
if (streamSemaphore.availablePermits() > 1) {
throw new RuntimeException("p=" + streamSemaphore.availablePermits());
Copy link
Owner Author

Choose a reason for hiding this comment

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

MAJOR Define and throw a dedicated exception instead of using a generic one. rule

*/
public class VertxInputStream extends InputStream {

private static final Logger LOG = LoggerFactory.getLogger(VertxInputStream.class);
Copy link
Owner Author

Choose a reason for hiding this comment

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

MAJOR Remove this unused "LOG" private field. rule

*/
public void populate(final Buffer buffer) {

System.out.println("populating..." + currentBuffer != null);
Copy link
Owner Author

Choose a reason for hiding this comment

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

MAJOR Replace this use of System.out or System.err by a logger. rule

@trajano
Copy link
Owner Author

trajano commented Mar 10, 2018

SonarQube analysis reported 4 issues

  • MAJOR 4 major

Watch the comments in this conversation to review them.

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.

1 participant