1
2
3
4
5
6
7
8
9
10 package com.puppycrawl.tools.checkstyle.checks.coding.requirethis;
11
12 import java.util.Arrays;
13 import java.util.Collections;
14 import java.util.Set;
15 import java.util.TreeSet;
16 import java.util.stream.Collectors;
17
18 public class InputRequireThisMethodReferences {
19 private Set<String> tags = Collections.unmodifiableSortedSet(
20 Arrays.stream(new String[] {"br", "li", "dt", "dd", "hr", "img", "p", "td", "tr", "th",})
21 .collect(Collectors.toCollection(TreeSet::new)));
22
23 public InputRequireThisMethodReferences(Set<String> tags) {
24 tags = tags;
25 }
26
27 public InputRequireThisMethodReferences() {
28 this.tags = Arrays.stream(
29 new String[] {"br", "li", "dt", "dd", "hr", "img", "p", "td", "tr", "th",})
30 .collect(Collectors.toCollection(TreeSet::new));
31 }
32 }