Skip to content

Commit ebf69fa

Browse files
authored
Update ToStringBuilder.java with static import
Signed-off-by: Ash <73482956+ascopes@users.noreply.github.com>
1 parent 1b2d5b1 commit ebf69fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java-compiler-testing/src/main/java/io/github/ascopes/jct/utils/ToStringBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package io.github.ascopes.jct.utils;
1717

18+
import static java.util.Objects.requireNonNull;
19+
1820
import java.io.File;
1921
import java.lang.reflect.Array;
2022
import java.net.URI;
@@ -25,7 +27,6 @@
2527
import java.util.List;
2628
import java.util.Locale;
2729
import java.util.Map;
28-
import java.util.Objects;
2930
import java.util.UUID;
3031
import java.util.regex.Pattern;
3132
import org.apiguardian.api.API;
@@ -70,7 +71,7 @@ public final class ToStringBuilder {
7071
* @param owner the object that is being converted to a string.
7172
*/
7273
public ToStringBuilder(Object owner) {
73-
this.owner = Objects.requireNonNull(owner, "owner must not be null");
74+
this.owner = requireNonNull(owner, "owner must not be null");
7475
attributes = new LinkedHashMap<>();
7576
}
7677

0 commit comments

Comments
 (0)