Fixed to this:

````
public Set<Violation> getViolations() {
    if (this.violations == null) {
        return new HashSet<>();
    }

    return this.violations;
}
````