Skip to content

Conversation

@lergor
Copy link
Owner

@lergor lergor commented Sep 17, 2018

No description provided.

return emptyLogResult();
}
history.stream().filter(
new Predicate<CommitInfo>() {

Choose a reason for hiding this comment

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

предикат не понял
если указана ревизия, то все коммиты-наследники должны быть пропущены, разве это гарантируется commitInfo.hash.startsWith(revision)? по текущему вычислению hash -- не похоже

Copy link
Owner Author

Choose a reason for hiding this comment

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

@sproshev исправила все замечания в третьей части


public class Message {

private ByteArrayOutputStream os;

Choose a reason for hiding this comment

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

можно было StringBuilder заиспользовать

public String time;
public String hash;
public String message;
public String branch;

Choose a reason for hiding this comment

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

лучше стараться делать объекты immutable

Copy link
Owner Author

Choose a reason for hiding this comment

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

@sproshev так нужно для библиотеки JSON

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.

3 participants