Skip to content

Commit

Permalink
[#180] Drop crumbs from validation item tostring
Browse files Browse the repository at this point in the history
  • Loading branch information
andylowry committed Aug 13, 2018
1 parent c1a1b92 commit 656e62e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

import com.google.common.collect.Lists;
import com.reprezen.jsonoverlay.JsonOverlay;
import com.reprezen.jsonoverlay.Overlay;
import com.reprezen.jsonoverlay.parser.PositionInfo;
import com.reprezen.jsonoverlay.PositionInfo;

public class ValidationResults {

Expand Down Expand Up @@ -173,11 +172,8 @@ public List<String> getCrumbs() {

@Override
public String toString() {
String label = crumbs != null && !crumbs.isEmpty() //
? crumbs.stream().collect(Collectors.joining("."))
: "";
String posString = pos != null ? pos.toString(true) + " " : "";
return posString + label + ": " + msg;
return posString + ": " + msg;
}
}
}

0 comments on commit 656e62e

Please sign in to comment.