We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c30a1e commit a8e85e3Copy full SHA for a8e85e3
src/main/java/org/nibor/autolink/LinkExtractor.java
@@ -66,7 +66,10 @@ private Builder() {
66
* @return this builder
67
*/
68
public Builder linkTypes(Set<LinkType> linkTypes) {
69
- this.linkTypes = new HashSet<>(Objects.requireNonNull(linkTypes, "linkTypes must not be null"));
+ if (linkTypes == null) {
70
+ throw new NullPointerException("linkTypes must not be null");
71
+ }
72
+ this.linkTypes = new HashSet<>(linkTypes);
73
return this;
74
}
75
0 commit comments