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 d83fab4 commit 992b503Copy full SHA for 992b503
classlib/src/main/java/org/teavm/classlib/java/util/TTemplateCollections.java
@@ -262,9 +262,7 @@ static class NElementSet<T> extends AbstractImmutableSet<T> {
262
int index = 0;
263
outerLoop:
264
for (T element : (T[]) collection.toArray()) {
265
- if (element == null) {
266
- throw new NullPointerException(String.format("Element at index %s is null", index));
267
- }
+ Objects.requireNonNull(element);
268
269
int indexTemp = Math.abs(element.hashCode()) % temp.length;
270
while (temp[indexTemp] != null) {
0 commit comments