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 fee80d4 commit f63fb65Copy full SHA for f63fb65
src/main/java/difflib/algorithm/myers/MyersDiff.java
@@ -75,9 +75,7 @@ public MyersDiff() {
75
* @param equalizer Must not be {@code null}.
76
*/
77
public MyersDiff(final Equalizer<T> equalizer) {
78
- if (equalizer == null) {
79
- throw new IllegalArgumentException("equalizer must not be null");
80
- }
+ Objects.requireNonNull(equalizer, "equalizer must not be null");
81
this.equalizer = equalizer;
82
}
83
0 commit comments