Skip to content

Commit

Permalink
refact: remove usage of deprecated interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bjansen committed Mar 10, 2024
1 parent 1668e58 commit 72ff1f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/antlr/intellij/plugin/Utils.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.antlr.intellij.plugin;

import com.intellij.util.containers.Predicate;
import java.util.function.Predicate;

import java.util.ArrayList;
import java.util.Collection;
Expand All @@ -11,7 +11,7 @@ public static <T> List<T> filter(Collection<T> data, Predicate<T> pred) {
if ( data==null ) return null;
List<T> filtered = new ArrayList<>();
for (T x : data) {
if ( pred.apply(x) ) filtered.add(x);
if ( pred.test(x) ) filtered.add(x);
}
return filtered;
}
Expand Down

This file was deleted.

0 comments on commit 72ff1f4

Please sign in to comment.