blob: b0b528e815d7173258963f78fb2e9a274579a46d [file] [log] [blame]
package com.puppycrawl.tools.checkstyle.checks.coding.requirethis;
import java.util.Arrays;
import java.util.Collections;
import java.util.Set;
import java.util.TreeSet;
import java.util.stream.Collectors;
public class InputRequireThisMethodReferences {
private Set<String> tags = Collections.unmodifiableSortedSet(
Arrays.stream(new String[] {"br", "li", "dt", "dd", "hr", "img", "p", "td", "tr", "th",})
.collect(Collectors.toCollection(TreeSet::new)));
public InputRequireThisMethodReferences(Set<String> tags) {
tags = tags; // violation
}
public InputRequireThisMethodReferences() {
this.tags = Arrays.stream(
new String[] {"br", "li", "dt", "dd", "hr", "img", "p", "td", "tr", "th",})
.collect(Collectors.toCollection(TreeSet::new));
}
}