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

Fixed a bug that collapsed duplicate versions. #432

Closed
wants to merge 2 commits into from

Conversation

mikedurbin
Copy link
Contributor

No description provided.

@@ -135,8 +138,12 @@ public static ViewHelpers getInstance() {
while (versions.hasNext()) {
quad = versions.next();
date = getVersionDate(dataset, quad.getObject());
map.put(date == null || date.length() == 0 ?
format.format(new Date()) : date, quad.getObject());
String key = date == null || date.length() == 0 ?
Copy link

Choose a reason for hiding this comment

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

It would be easier to read if instead of: "date == null || date.length() == 0",
you used: "Strings.isNullOrEmpty(date)"

@awoods
Copy link

awoods commented Aug 7, 2014

@awoods awoods closed this Aug 7, 2014
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.

None yet

2 participants